From 4705e33ef174a44f4f3052eedcf6090ed3acce9a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 May 2015 13:10:25 +0200 Subject: [PATCH] only enable menu entries if user has permission to edit/upload --- static/js/infoView.indiancinema.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index 3fe9c1408..ce5312f27 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -49,16 +49,19 @@ pandora.ui.infoView = function(data) { items: [ { id: 'imdb', - title: Ox._('Update IMDb ID...') + title: Ox._('Update IMDb ID...'), + disabled: !canEdit }, { id: 'metadata', - title: Ox._('Update Metadata...') + title: Ox._('Update Metadata...'), + disabled: !canEdit }, {}, { id: 'upload', - title: Ox._('Upload Video...') + title: Ox._('Upload Video...'), + disabled: !pandora.site.capabilities.canAddItems[pandora.user.level] }, {}, {