xieruidong %!s(int64=2) %!d(string=hai) anos
pai
achega
791b494681
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/admin/controller/Auth.php

+ 1 - 1
app/admin/controller/Auth.php

@@ -92,7 +92,7 @@ class Auth extends Controller
      */
     public function apply()
     {
-        $map = $this->_vali(['id.require' => '权限ID不能为空!']);
+        $map = $this->_vali(['id.require' => '权限ID不能为空!'],$this->request->method());
         if (input('action') === 'get') {
             if ($this->app->isDebug()) AdminService::clearCache();
             $nodes = SystemNode::mk()->where($map)->column('node');