optimize logic
这个提交包含在:
父节点
0729dee56f
当前提交
b1c1c5de32
|
@ -204,8 +204,13 @@ class PermissionsHook implements
|
|||
$rnrsverified_enabled_confirmed_group && $rnrsverified_enabled_exempt_group &&
|
||||
in_array($this->config->get('RNRSExemptGroup'), $this->permissionManager->getUserPermissions($user))
|
||||
) {
|
||||
$this->userGroupManager->removeUserFromGroup($user, $this->config->get('RNRSExemptGroup'));
|
||||
$this->removeGroupLog($user, $this->config->get('RNRSExemptGroup'));
|
||||
if (
|
||||
$rnrsverified_enabled_exempt_group &&
|
||||
in_array($this->config->get('RNRSExemptGroup'), $this->permissionManager->getUserPermissions($user))
|
||||
) {
|
||||
$this->userGroupManager->removeUserFromGroup($user, $this->config->get('RNRSExemptGroup'));
|
||||
$this->removeGroupLog($user, $this->config->get('RNRSExemptGroup'));
|
||||
}
|
||||
|
||||
if (
|
||||
$rnrsverified_enabled_confirmed_group &&
|
||||
|
@ -281,8 +286,13 @@ class PermissionsHook implements
|
|||
$rnrsverified_enabled_confirmed_group && $rnrsverified_enabled_exempt_group &&
|
||||
in_array($this->config->get('RNRSExemptGroup'), $this->permissionManager->getUserPermissions($user))
|
||||
) {
|
||||
$this->userGroupManager->removeUserFromGroup($user, $this->config->get('RNRSExemptGroup'));
|
||||
$this->removeGroupLog($user, $this->config->get('RNRSExemptGroup'));
|
||||
if (
|
||||
$rnrsverified_enabled_exempt_group &&
|
||||
in_array($this->config->get('RNRSExemptGroup'), $this->permissionManager->getUserPermissions($user))
|
||||
) {
|
||||
$this->userGroupManager->removeUserFromGroup($user, $this->config->get('RNRSExemptGroup'));
|
||||
$this->removeGroupLog($user, $this->config->get('RNRSExemptGroup'));
|
||||
}
|
||||
|
||||
if (
|
||||
$rnrsverified_enabled_confirmed_group &&
|
||||
|
|
正在加载...
在新工单中引用