Browse Source
fix(ban): Make the function return bans for banned actors not by moderator
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/12735/head
Joas Schilling
1 year ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
2 additions and
2 deletions
-
lib/Service/BanService.php
|
|
|
@ -72,8 +72,8 @@ class BanService { |
|
|
|
* |
|
|
|
* @throws DoesNotExistException |
|
|
|
*/ |
|
|
|
public function getBanForActorAndRoom(string $moderatorActorType, string $moderatorActorId, int $roomId): Ban { |
|
|
|
return $this->banMapper->findForActorAndRoom($moderatorActorType, $moderatorActorId, $roomId); |
|
|
|
public function getBanForActorAndRoom(string $bannedActorType, string $bannedActorId, int $roomId): Ban { |
|
|
|
return $this->banMapper->findForActorAndRoom($bannedActorType, $bannedActorId, $roomId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|