From e6fae6ceb22ca25fd88d69dab65484a08057aca6 Mon Sep 17 00:00:00 2001 From: ahbmz Date: Sat, 6 Aug 2022 21:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=85=81=E8=AE=B8=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=8F=91=E5=B8=83=E6=88=BF=E5=B1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Base.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/index/controller/Base.php b/application/index/controller/Base.php index 40a4b57..85a8d62 100644 --- a/application/index/controller/Base.php +++ b/application/index/controller/Base.php @@ -70,6 +70,11 @@ class Base extends Controller protected static function authAddHouse($curr_count = 0, $count_type = 'count') { + //超级管理员以外直接不允许添加 + if (MEMBER['is_manager'] != 1) { + exit(send_http_status(51004)); + } + //子账号不允许删除和添加 if ($_SERVER['HTTP_SUBUSERID'] > 0) { exit(send_http_status(417));