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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user