Skip to content

Commit 6da7fb5

Browse files
committed
fix assertion
1 parent e8d92db commit 6da7fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnityGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function cancelGroupJoinRequest(UnityUser $user, bool $send_mail = true):
207207
public function approveUser(UnityUser $new_user, bool $send_mail = true): void
208208
{
209209
$request = $this->SQL->getRequest($new_user->uid, $this->gid);
210-
\ensure(!$new_user->exists());
210+
\ensure($new_user->exists());
211211
$this->addUserToGroup($new_user);
212212
$this->SQL->removeRequest($new_user->uid, $this->gid);
213213
if ($send_mail) {

0 commit comments

Comments
 (0)