Kirin преди 2 години
родител
ревизия
d53a498edf
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();