shish 4 лет назад
Родитель
Сommit
e2f23fba72
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/BaseController.php

+ 1 - 1
app-ghs/controllers/BaseController.php

@@ -39,7 +39,7 @@ class BaseController extends PublicController
         }
         $this->adminId = $adminId;
         $admin = AdminService::getById($adminId, true);
-        if (empty($admin)) {
+        if (empty($admin) && in_array($action->id, $this->guestAccess) == false) {
             util::logout('帐号无效');
         }
         $this->admin = $admin;