add canSeeAllMetadata flag in indiancinema info view

This commit is contained in:
rolux 2013-03-08 15:28:44 +05:30
parent aaebe4bfd0
commit 9e79b85786

View file

@ -5,6 +5,7 @@ pandora.ui.infoView = function(data) {
var ui = pandora.user.ui,
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level],
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level],
canSeeAllMetadata = pandora.user.level != 'guest',
css = {
marginTop: '4px',
textAlign: 'justify',
@ -231,7 +232,7 @@ pandora.ui.infoView = function(data) {
renderGroup(['actor']);
renderGroup(['genre', 'keyword']);
renderGroup(canSeeAllMetadata ? ['genre', 'keyword'] : ['genre']);
renderGroup(['imdbId']);