Kirin před 2 roky
rodič
revize
d53a498edf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      application/admin/controller/Category.php

+ 1 - 1
application/admin/controller/Category.php

@@ -157,7 +157,7 @@ class Category extends Backend
         if ($row['cid'] == 0 && $this->auth->getUserInfo()['cid'] != 0) {
             $this->error(__('You have no permission'));
         }
-        if ($row['cid'] != $this->auth->getUserInfo()['cid']) {
+        if ($row['cid'] != $this->auth->getUserInfo()['cid'] && $this->auth->getUserInfo()['cid'] != 0) {
             $this->error(__('You have no permission'));
         }
         $adminIds = $this->getDataLimitAdminIds();