From 98bb1ab539847c64bf466ff6402b5c01ff9b3a27 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 11 Aug 2021 17:56:10 +0800 Subject: [PATCH] * Adjust authorization logic for entry. --- framework/api/entry.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/api/entry.class.php b/framework/api/entry.class.php index 67cd73657b..801beacd6c 100644 --- a/framework/api/entry.class.php +++ b/framework/api/entry.class.php @@ -9,7 +9,7 @@ class entry extends baseEntry { parent::__construct(); - if(!isset($this->app->user)) $this->sendError(401, 'Unauthorized'); + if(!isset($this->app->user) or $this->app->user->account == 'guest') $this->sendError(401, 'Unauthorized'); $this->dao = $this->loadModel('common')->dao; }