CC-5317 : Guest user can't see Now playing page
removed the library module completely from page if the user does not have permission to view it.
This commit is contained in:
parent
71001480d2
commit
7e96828cdd
3 changed files with 38 additions and 25 deletions
|
@ -178,7 +178,12 @@ var AIRTIME = (function(AIRTIME){
|
|||
};
|
||||
|
||||
mod.checkToolBarIcons = function() {
|
||||
AIRTIME.library.checkAddButton();
|
||||
|
||||
//library may not be on the page.
|
||||
if (AIRTIME.library !== undefined) {
|
||||
AIRTIME.library.checkAddButton();
|
||||
}
|
||||
|
||||
mod.checkSelectButton();
|
||||
mod.checkTrimButton();
|
||||
mod.checkDeleteButton();
|
||||
|
|
|
@ -186,7 +186,11 @@ AIRTIME = (function(AIRTIME) {
|
|||
AIRTIME.showbuilder.fnServerData.start = oRange.start;
|
||||
AIRTIME.showbuilder.fnServerData.end = oRange.end;
|
||||
|
||||
AIRTIME.library.libraryInit();
|
||||
//the user might not have the library on the page (guest user)
|
||||
if (AIRTIME.library !== undefined) {
|
||||
AIRTIME.library.libraryInit();
|
||||
}
|
||||
|
||||
AIRTIME.showbuilder.builderDataTable();
|
||||
setWidgetSize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue