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
parent
commit
24b143c059
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 4
      lib/Service/BanService.php

4
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);
}
/**

Loading…
Cancel
Save