branch | oldstable |
changeset 8462 | a14b6562082b |
parent 8167 | 41ec579e27c4 |
child 10907 | 9ae707db5265 |
8231:1bb43e31032d | 8462:a14b6562082b |
---|---|
1 from cubicweb.schemas.base import in_group, CWSourceSchemaConfig |
|
2 # copy __permissions__ to avoid modifying a shared dictionary |
|
3 in_group.__permissions__ = in_group.__permissions__.copy() |
|
4 in_group.__permissions__['read'] = ('managers',) |
|
5 |
|
6 cw_for_source = CWSourceSchemaConfig.get_relation('cw_for_source') |
|
7 cw_for_source.__permissions__ = {'read': ('managers', 'users'), |
|
8 'add': ('managers',), |
|
9 'delete': ('managers',)} |
|
10 |
|
11 |