Skip to content

Commit

Permalink
fixed: correctly check if we have a group
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Sep 2, 2024
1 parent 7606b7c commit da87035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/GroupTools/Menus/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static function groupInvite(\Elgg\Event $event): ?MenuItems {

// this is only allowed for group members
$entity = $event->getEntityParam();
if ($entity instanceof \ElggGroup || !$entity->isMember($user)) {
if (!$entity instanceof \ElggGroup || !$entity->isMember($user)) {
return null;
}

Expand Down

0 comments on commit da87035

Please sign in to comment.