getData('reportsAccess') === 'y'; } } public static function hasDirectorFileAccess() { $doc = App_Doc_Acl::getDoc(); if ($doc instanceof App_Doc_Admin) { return true; } else { return App_User_Auth::getInstance()->getData('directorAccess') === 'y'; } } public static function hasReportSummaryAccess() { $doc = App_Doc_Acl::getDoc(); if ($doc instanceof App_Doc_Admin) { return true; } else { return App_User_Auth::getInstance()->getData('viewAllReports') === 'y'; } } public static function hasLessonAccess() { $doc = App_Doc_Acl::getDoc(); if ($doc instanceof App_Doc_Admin) { return true; } else { return App_User_Auth::getInstance()->getData('lessonsAccess') === 'y'; } } public static function showForbidden() { App_Doc_Acl::getDoc()->display404(); } /** * @return Qs_Doc */ protected static function getDoc() { return Zend_Registry::get('doc'); } }