diff --git a/inc/HTTPAuthSession.php b/inc/HTTPAuthSession.php index 6e8a998c..bcc770b0 100644 --- a/inc/HTTPAuthSession.php +++ b/inc/HTTPAuthSession.php @@ -250,7 +250,7 @@ class HTTPAuthSession { * @return boolean Whether or not the user has the specified role. */ function AllowedTo ( $whatever ) { - return ( $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] ); + return ( isset($this->logged_in) && $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] ); }