forked from 0x2620/pandora
only enable menu entries if user has permission to edit/upload
This commit is contained in:
parent
5da83f6f6d
commit
4705e33ef1
1 changed files with 6 additions and 3 deletions
|
@ -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]
|
||||
},
|
||||
{},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue