Added public var $allowedUsers and modified public function checkAccess()