瀏覽代碼

获取品牌不校验权限

18838166547 1 年之前
父節點
當前提交
8af75f8630
共有 2 個文件被更改,包括 5 次插入8 次删除
  1. 5 0
      app/admin/controller/AdminControl.php
  2. 0 8
      public/.htaccess

+ 5 - 0
app/admin/controller/AdminControl.php

@@ -110,6 +110,11 @@ class AdminControl extends BaseController
         if (in_array($controller, $tmp)) {
             return true;
         }
+        $allow = ["ajax_get_brand"];
+
+        if (in_array($action,$allow)){
+            return true;
+        }
         if (in_array($controller, $permission) || in_array("$controller.$action", $permission)) {
             return true;
         } else {

+ 0 - 8
public/.htaccess

@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
-  Options +FollowSymlinks -Multiviews
-  RewriteEngine On
-
-  RewriteCond %{REQUEST_FILENAME} !-d
-  RewriteCond %{REQUEST_FILENAME} !-f
-  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
-</IfModule>