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:
2017-12-07 16:51:16 +01:00
parent 5c7f37a100
commit dfc224d8a9
3 changed files with 7 additions and 6 deletions

View File

@@ -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'}