Quellcode durchsuchen

附件权限隔离

pengchanglu vor 3 Jahren
Ursprung
Commit
72c8955cfc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/admin/controller/general/Attachment.php

+ 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();
     }
-
 }