fix typo
这个提交包含在:
父节点
848723db6c
当前提交
7d53c2935c
|
@ -126,7 +126,7 @@ class PermissionsHook implements
|
|||
private function addGroup($user, $added_group)
|
||||
{
|
||||
// Add Group
|
||||
$this->userGroupManager->addUserToGroup($user, $this->config->get('RNRSConfirmedGroup'));
|
||||
$this->userGroupManager->addUserToGroup($user, $added_group);
|
||||
|
||||
// Add Add Log
|
||||
$oldGroups = $this->userGroupManager->getUserGroups($user); // previous groups
|
||||
|
@ -151,9 +151,10 @@ class PermissionsHook implements
|
|||
private function removeGroup($user, $removed_group)
|
||||
{
|
||||
// Remove Group
|
||||
$oldGroups = $this->userGroupManager->getUserGroups($user); // previous groups
|
||||
$this->userGroupManager->removeUserFromGroup($user, $removed_group);
|
||||
|
||||
// Add Remove Log
|
||||
$oldGroups = $this->userGroupManager->getUserGroups($user); // previous groups
|
||||
$newGroups = [...$oldGroups]; // all groups
|
||||
$key = array_search($removed_group, $newGroups);
|
||||
if ($key !== false) {
|
||||
|
|
正在加载...
在新工单中引用