diff --git a/allianceauth/groupmanagement/auth_hooks.py b/allianceauth/groupmanagement/auth_hooks.py index a8484abd..6d11e41d 100644 --- a/allianceauth/groupmanagement/auth_hooks.py +++ b/allianceauth/groupmanagement/auth_hooks.py @@ -22,7 +22,8 @@ class GroupManagementMenuItem(MenuItemHook): def render(self, request): if GroupManager.can_manage_groups(request.user): - self.count = GroupManager.pending_requests_count_for_user(request.user) + app_count = GroupManager.pending_requests_count_for_user(request.user) + self.count = app_count if app_count and app_count > 0 else None return MenuItemHook.render(self, request) return ''