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:
@@ -86,7 +86,7 @@ class PillarServer(BlinkerCompatibleEve):
|
||||
# The default roles Pillar uses. Will probably all move to extensions at some point.
|
||||
self._user_roles: typing.Set[str] = {
|
||||
'demo', 'admin', 'subscriber', 'homeproject',
|
||||
'protected', 'org-subscriber',
|
||||
'protected', 'org-subscriber', 'video-encoder',
|
||||
'service', 'badger', 'svner', 'urler',
|
||||
}
|
||||
self._user_roles_indexable: typing.Set[str] = {'demo', 'admin', 'subscriber'}
|
||||
|
Reference in New Issue
Block a user