优化权限添加

master
chenzhi 4 years ago
parent a33ea0d575
commit cc59050261

@ -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{

Loading…
Cancel
Save