Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1e771e6

Browse files
committedApr 15, 2021
Issues-550:Hide the 'Public forums' link for guests
1 parent ea6d806 commit 1e771e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎vanilla/applications/vanilla/views/modules/discussionfilter.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050
$isActive = true;
5151
}
5252

53-
$menuOptions['AllCategories']['Url'] = anchor('Public Forums', '/categories');
54-
$menuOptions['AllCategories']['IsActive'] = $isActive;
55-
$menuOptions['AllCategories']['CssClass'] = $CssClass;
53+
if(gdn::session()->isValid()) {
54+
$menuOptions['AllCategories']['Url'] = anchor('Public Forums', '/categories');
55+
$menuOptions['AllCategories']['IsActive'] = $isActive;
56+
$menuOptions['AllCategories']['CssClass'] = $CssClass;
57+
}
5658

5759
$Controller->EventArguments['Menu'] = &$menuOptions;
5860
$Controller->fireEvent('BeforeRenderDiscussionFilters');

0 commit comments

Comments
 (0)
Please sign in to comment.