Example #1
0
 static function getRecordAccessList($authId = null, $module = '', $type = '')
 {
     if (null === $authId) {
         $authId = $_SESSION[C('USER_AUTH_KEY')];
     }
     if (empty($module)) {
         $module = MODULE_NAME;
     }
     if (empty($type)) {
         $type = C('USER_AUTH_DECISION');
     }
     //获取权限访问列表
     $accessManager = RBAC::getAccessDecsionManager($type);
     $accessList = $accessManager->getModuleAccessList($authId, $module);
     return $accessList;
 }