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