From c1707a59915ce3f171d1cc89f906577637690ca8 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko <50026114+maksalees@users.noreply.github.com> Date: Wed, 15 Dec 2021 01:29:41 +0200 Subject: [PATCH] Groups: Fix discussions Again. Pardon :3 --- Web/Models/Entities/Topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Entities/Topic.php b/Web/Models/Entities/Topic.php index 938eb383..89b3cb39 100644 --- a/Web/Models/Entities/Topic.php +++ b/Web/Models/Entities/Topic.php @@ -59,7 +59,7 @@ class Topic extends Postable function canBeModifiedBy(User $user): bool { - return $this->getOwner(false)->getId() === $user->getId() || $this->club->canBeModifiedBy($user); + return $this->getOwner(false)->getId() === $user->getId() || $this->getClub()->canBeModifiedBy($user); } function getLastComment(): ?Comment