Browse Source

pc权限测试

lizhen_gitee 5 months ago
parent
commit
56d44862b5

+ 3 - 0
application/company/controller/auth/Admin.php

@@ -28,6 +28,9 @@ class Admin extends Apic
     protected $childrenGroupIds = [];
     protected $childrenAdminIds = [];
 
+    //无需要权限判断的方法
+    protected $noNeedRight = ['selectpage','info'];
+
     public function _initialize()
     {
         parent::_initialize();

+ 3 - 1
application/company/controller/auth/Group.php

@@ -27,7 +27,7 @@ class Group extends Apic
     protected $grouplist = [];
     protected $groupdata = [];
     //无需要权限判断的方法
-    protected $noNeedRight = ['roletree'];
+    protected $noNeedRight = ['info','simple_list'];
 
 
     public function _initialize()
@@ -257,6 +257,8 @@ class Group extends Apic
         $this->error();
     }
 
+    /////////////////////////////以下没用到///////////////////////////////
+
     /**
      * 批量更新
      * @internal