Orgs: Use create-organization capability to control access

This is more explicit and future-proof than checking for admin cap.
This commit is contained in:
2017-08-23 13:57:14 +02:00
parent 72404d0fd9
commit 40172bf8b5
2 changed files with 2 additions and 2 deletions

View File

@@ -167,5 +167,5 @@ USER_CAPABILITIES = defaultdict(**{
'subscriber': {'subscriber', 'home-project'},
'demo': {'subscriber', 'home-project'},
'admin': {'subscriber', 'home-project', 'video-encoding', 'admin',
'view-pending-nodes', 'edit-project-node-types'},
'view-pending-nodes', 'edit-project-node-types', 'create-organization'},
}, default_factory=frozenset)