author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 22 Dec 2009 19:27:51 +0100 | |
changeset 4192 | 8e2eaa6b3733 |
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 |
} |