From cc59050261a6d7ac01123c21dc9c5a47b6965498 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 1 Mar 2021 18:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9D=83=E9=99=90=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AuthManagerController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/AuthManagerController.class.php b/Application/Admin/Controller/AuthManagerController.class.php index 9f3c009a1..655740236 100644 --- a/Application/Admin/Controller/AuthManagerController.class.php +++ b/Application/Admin/Controller/AuthManagerController.class.php @@ -221,7 +221,9 @@ class AuthManagerController extends AdminController{ $data = $AuthGroup->create(); if ( $data ) { if ( empty($data['id']) ) { - \Think\Log::actionLog('AuthManager/createGroup','authGroup',1); + if(!IS_SUBSITE){ + \Think\Log::actionLog('AuthManager/createGroup','authGroup',1); + } $r = $AuthGroup->syncAdd($data); addOperationLog(array( "op_type"=>0, @@ -229,7 +231,9 @@ class AuthManagerController extends AdminController{ "url"=>U("AuthManager/index") )); }else{ - \Think\Log::actionLog('AuthManager/editGroup','authGroup',1); + if(!IS_SUBSITE){ + \Think\Log::actionLog('AuthManager/editGroup','authGroup',1); + } if($isrules){ $r = SM("auth_group","sys_")->save($data); }else{