From 112b61dc9abb893a68be8f1d4a520c126e1e3ea6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Feb 2012 14:36:06 +0530 Subject: [PATCH] add canImportAnnotations capability --- pandora/0xdb.jsonc | 1 + pandora/padma.jsonc | 1 + static/js/pandora/item.js | 1 + 3 files changed, 3 insertions(+) diff --git a/pandora/0xdb.jsonc b/pandora/0xdb.jsonc index c5b8ec3d..f37a0c65 100644 --- a/pandora/0xdb.jsonc +++ b/pandora/0xdb.jsonc @@ -31,6 +31,7 @@ "canEditPlaces": {"staff": true, "admin": true}, "canEditSitePages": {"staff": true, "admin": true}, "canEditUsers": {"admin": true}, + "canImportAnnotations": {"staff": true, "admin": true}, "canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4}, "canSeeDebugMenu": {"staff": true, "admin": true}, diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index 3836d1ad..c3a2622c 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -29,6 +29,7 @@ "canEditPlaces": {"staff": true, "admin": true}, "canEditSitePages": {"staff": true, "admin": true}, "canEditUsers": {"admin": true}, + "canImportAnnotations": {"staff": true, "admin": true}, "canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canSeeDebugMenu": {"staff": true, "admin": true}, diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index f8089e9b..3facf4b0 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -241,6 +241,7 @@ pandora.ui.item = function() { cuts: result.data.cuts || [], duration: result.data.duration, enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= result.data.rightslevel, + enableImport: pandora.site.capabilities.canImportAnnotations[pandora.user.level], enableSubtitles: pandora.user.ui.videoSubtitles, find: pandora.user.ui.itemFind, getFrameURL: function(position) {