only enable menu entries if user has permission to edit/upload

This commit is contained in:
j 2015-05-23 13:10:25 +02:00
parent 5da83f6f6d
commit 4705e33ef1

View file

@ -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]
},
{},
{