Groups: Fix discussions

Again. Pardon :3
This commit is contained in:
Maxim Leshchenko 2021-12-15 01:29:41 +02:00 committed by GitHub
parent 066ebc1c6f
commit c1707a5991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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