-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbac-rules.js
52 lines (51 loc) · 1.11 KB
/
rbac-rules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const rules = {
admin: [
'basicMessages:create',
'basicMessages:read',
'contacts:create',
'contacts:read',
'contacts:update',
'contacts:delete',
'credentials:issue',
'credentials:read',
'credentials:reissue',
'credentials:revoke',
'travelers:create',
'travelers:read',
'travelers:update',
'travelers:delete',
'invitations:create',
'invitations:accept',
'invitations:read',
'invitations:delete',
'presentations:read',
'roles:read',
'settings:read',
'settings:update',
'users:create',
'users:read',
'users:update',
'users:delete',
'users:updatePassword',
'users:updateRoles',
],
moderator: [
'basicMessages:create',
'basicMessages:read',
'contacts:create',
'contacts:read',
'contacts:update',
'credentials:issue',
'credentials:read',
'credentials:reissue',
'credentials:revoke',
'travelers:create',
'travelers:read',
'travelers:update',
'invitations:create',
'invitations:read',
'invitations:accept',
'presentations:read',
],
}
module.exports = rules