Ensure notifications are only fetched and shown for at least admins

This commit is contained in:
Johannes Zellner
2021-07-07 19:07:43 +02:00
parent 2cb698c6bd
commit 9bbd1af259
3 changed files with 6 additions and 2 deletions

View File

@@ -159,7 +159,7 @@
<li ng-show="user.isAtLeastUserManager">
<a ng-class="{ active: isActive('/users')}" href="#/users"><i class="fa fa-users fa-fw"></i> {{ 'users.title' | tr }}</a>
</li>
<li>
<li ng-show="user.isAtLeastAdmin">
<a href="#/notifications">
<i class="fas fa-bell" ng-show="notificationCount"></i>
<i class="far fa-bell" ng-hide="notificationCount"></i>