add canSeeAllMetadata flag in indiancinema info view
This commit is contained in:
parent
aaebe4bfd0
commit
9e79b85786
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ pandora.ui.infoView = function(data) {
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level],
|
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level],
|
||||||
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level],
|
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level],
|
||||||
|
canSeeAllMetadata = pandora.user.level != 'guest',
|
||||||
css = {
|
css = {
|
||||||
marginTop: '4px',
|
marginTop: '4px',
|
||||||
textAlign: 'justify',
|
textAlign: 'justify',
|
||||||
|
@ -231,7 +232,7 @@ pandora.ui.infoView = function(data) {
|
||||||
|
|
||||||
renderGroup(['actor']);
|
renderGroup(['actor']);
|
||||||
|
|
||||||
renderGroup(['genre', 'keyword']);
|
renderGroup(canSeeAllMetadata ? ['genre', 'keyword'] : ['genre']);
|
||||||
|
|
||||||
renderGroup(['imdbId']);
|
renderGroup(['imdbId']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue