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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue