typo
这个提交包含在:
父节点
55a713bd1f
当前提交
cda91d6d83
|
@ -86,8 +86,7 @@ class PermissionsHook implements
|
|||
private function checkUserRights(UserIdentity $user)
|
||||
{
|
||||
// Mode2: confirmed by verification
|
||||
$rnrsverified_mode2 =
|
||||
$this->userGroupManager->getUserGroups($user, $this->config->get('RNRSConfirmedGroup'));
|
||||
$rnrsverified_mode2 = in_array($this->config->get('RNRSConfirmedGroup'), $this->userGroupManager->getUserGroups($user));
|
||||
|
||||
if ($rnrsverified_mode2) {
|
||||
return true;
|
||||
|
@ -105,7 +104,7 @@ class PermissionsHook implements
|
|||
{
|
||||
// Mode3: in group(s) that exempted from verification
|
||||
$rnrsverified_mode3 = (
|
||||
$this->userGroupManager->getUserGroups($user, $this->config->get('RNRSExemptGroup')) ||
|
||||
in_array($this->config->get('RNRSExemptGroup'), $this->userGroupManager->getUserGroups($user)) ||
|
||||
in_array('rnrsverify-exempt', $this->permissionManager->getUserPermissions($user)) ||
|
||||
in_array('bot', $this->permissionManager->getUserPermissions($user))
|
||||
);
|
||||
|
|
正在加载...
在新工单中引用