author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 11 Aug 2009 12:21:45 +0200 | |
changeset 2762 | b1bb33b37992 |
parent 2502 | 324ec2056d56 |
child 4243 | 2621de25d15a |
permissions | -rw-r--r-- |
2502 | 1 |
# permissions for "meta" entity type (readable by anyone, can only be |
2 |
# added/deleted by managers) |
|
2141
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
3 |
META_ETYPE_PERMS = { |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
4 |
'read': ('managers', 'users', 'guests',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
5 |
'add': ('managers',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
6 |
'delete': ('managers',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
7 |
'update': ('managers', 'owners',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
8 |
} |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
9 |
|
2502 | 10 |
# permissions for "meta" relation type (readable by anyone, can only be |
11 |
# added/deleted by managers) |
|
2141
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
12 |
META_RTYPE_PERMS = { |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
13 |
'read': ('managers', 'users', 'guests',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
14 |
'add': ('managers',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
15 |
'delete': ('managers',), |
0072247db207
schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
16 |
} |
2501
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
17 |
|
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
18 |
# permissions for relation type that should only set by hooks using unsafe |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
19 |
# execute, readable by anyone |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
20 |
HOOKS_RTYPE_PERMS = { |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
21 |
'read': ('managers', 'users', 'guests',), |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
22 |
'add': (), |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
23 |
'delete': (), |
fa86d99c2c3a
test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2141
diff
changeset
|
24 |
} |