Skip to content

Commit

Permalink
use new permission VIEW_TAGS to restrict tags page to logged in users…
Browse files Browse the repository at this point in the history
… only
  • Loading branch information
Giraffaman committed Mar 14, 2024
1 parent c4c45e2 commit a8993c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/tag_list/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function onPageRequest(PageRequestEvent $event): void
{
global $config, $page, $user;

if ($event->page_matches("tags/{sub}", method: "GET")) {
if ($event->page_matches("tags/{sub}", method: "GET", permission: Permissions::VIEW_TAGS)) {
$this->theme->set_navigation($this->build_navigation());
$sub = $event->get_arg('sub');

Expand Down

0 comments on commit a8993c3

Please sign in to comment.