Procházet zdrojové kódy

附件权限隔离

pengchanglu před 3 roky
rodič
revize
72c8955cfc

+ 1 - 1
application/admin/controller/general/Attachment.php

@@ -17,6 +17,7 @@ class Attachment extends Backend
      * @var \app\common\model\Attachment
      */
     protected $model = null;
+    protected $dataLimit = 'auth';
 
     protected $searchFields = 'id,filename,url';
     protected $noNeedRight = ['classify'];
@@ -153,5 +154,4 @@ class Attachment extends Backend
         \app\common\model\Attachment::where('id', 'in', $ids)->update(['category' => $category]);
         $this->success();
     }
-
 }