make rights levels editable

This commit is contained in:
rolux 2011-10-23 09:13:57 +00:00
commit a13c8b8545
3 changed files with 61 additions and 23 deletions

View file

@ -14,6 +14,7 @@
*/
"capabilities": {
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "friend": 3, "staff": 4, "admin": 4},
"canEditMetadata": {"staff": true, "admin": true},
"canPlayClips": {"guest": 2, "member": 2, "friend": 3, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "friend": 3, "staff": 4, "admin": 4},
@ -527,11 +528,11 @@
],
"rightsLevel": {"member": 5, "staff": 4, "admin": 3},
"rightsLevels": [
{"name": "Public", "color": [128, 255, 128], "description": "Everyone can see and play."},
{"name": "Relaxed", "color": [192, 255, 128], "description": "Guests can't play video."},
{"name": "Regular", "color": [255, 255, 128], "description": "Guests can't play clips, members can't play video."},
{"name": "Restricted", "color": [255, 192, 128], "description": "Only friend, staff and admin can see and play."},
{"name": "Private", "color": [255, 128, 128], "description": "Only staff and admin can see and play."}
{"name": "Public", "color": [128, 255, 128], "description": "Everyone can play and download."},
{"name": "Relaxed", "color": [192, 255, 128], "description": "Only friends, staff and admins can download."},
{"name": "Regular", "color": [255, 255, 128], "description": "Only friends, staff and admins can play video."},
{"name": "Restricted", "color": [255, 192, 128], "description": "Only friends, staff and admins can play clips."},
{"name": "Private", "color": [255, 128, 128], "description": "Only staff and admins can see."}
],
"sendReferrer": false,
"site": {