Added capability 'encode-video' and role 'video-encoder'.
Both 'video-encoder' and 'admin' roles get 'encode-video' capability, which allows users to upload video that gets encoded & displayed as a video. For users without this capability videos are handled as regular downloads.
This commit is contained in:
@@ -205,8 +205,9 @@ CELERY_BEAT_SCHEDULE = {
|
||||
USER_CAPABILITIES = defaultdict(**{
|
||||
'subscriber': {'subscriber', 'home-project'},
|
||||
'demo': {'subscriber', 'home-project'},
|
||||
'admin': {'video-encoding', 'admin',
|
||||
'admin': {'encode-video', 'admin',
|
||||
'view-pending-nodes', 'edit-project-node-types', 'create-organization'},
|
||||
'video-encoder': {'encode-video'},
|
||||
'org-subscriber': {'subscriber', 'home-project'},
|
||||
}, default_factory=frozenset)
|
||||
|
||||
|
Reference in New Issue
Block a user