isAuthenticated(); } public function checkAuth($privilege) { global $privileges; return in_array($privilege, $privileges); } }