Пример #1
0
 static function getRecordAccessList($authId = null, $module = '', $type = 'File')
 {
     if (null === $authId) {
         $authId = $_SESSION[C('USER_AUTH_KEY')];
     }
     if (empty($module)) {
         $module = MODULE_NAME;
     }
     //获取权限访问列表
     import("ORG.RBAC.AccessDecisionManager");
     $accessManager = new AccessDecisionManager();
     $accessList = $accessManager->getModuleAccessList($authId, $module, $type);
     return $accessList;
 }