From 02321bf7262f0d618326cfb19fce8ace7066c6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Tue, 1 Aug 2023 21:57:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BB=8E=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E9=99=90=E5=88=B6WEB=E7=BB=88=E7=AB=AF=E4=BB=85=E9=99=90?= =?UTF-8?q?=E8=B6=85=E7=AE=A1=E6=89=A7=E8=A1=8C=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/ba/Terminal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/ba/Terminal.php b/extend/ba/Terminal.php index 278747c1..05702f24 100644 --- a/extend/ba/Terminal.php +++ b/extend/ba/Terminal.php @@ -187,8 +187,8 @@ class Terminal $token = request()->server('HTTP_BATOKEN', request()->request('batoken', Cookie::get('batoken') ?: false)); $auth = Auth::instance(); $auth->init($token); - if (!$auth->isLogin()) { - $this->execError('Please login first', true); + if (!$auth->isSuperAdmin()) { + $this->execError("You're not super administrator", true); } }