Kirin 2 yıl önce
ebeveyn
işleme
d53a498edf
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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();