CC-3590: Calendar GUI->DJ user should not be able to invoke "Add Show" window
-add user type into javascript as a variable so we can check permissions on js side
This commit is contained in:
parent
16f3a331bb
commit
da8a5296b0
3 changed files with 18 additions and 4 deletions
|
@ -295,7 +295,11 @@ class Application_Model_User {
|
|||
|
||||
public static function GetCurrentUser() {
|
||||
$userinfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
|
||||
return new self($userinfo->id);
|
||||
|
||||
if (is_null($userinfo)){
|
||||
return null;
|
||||
} else {
|
||||
return new self($userinfo->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue