Skip to content

Commit

Permalink
fixed(notifications): (un)subscribe buttons only for logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Oct 1, 2021
1 parent 5fb8189 commit 824291f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function __invoke(\Elgg\Hook $hook) {
return;
}

if (!elgg_is_logged_in()) {
return;
}

$link_classes = [];
if ($hook->getParam('name') === 'title') {
$link_classes = [
Expand Down

0 comments on commit 824291f

Please sign in to comment.