* Adjust authorization logic for entry.

This commit is contained in:
dingguodong
2021-08-11 17:56:10 +08:00
parent 00aaa39dcc
commit 98bb1ab539
+1 -1
View File
@@ -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;
}