Skip to content

Commit

Permalink
use the correct check to see if showing individual user should be pos…
Browse files Browse the repository at this point in the history
…sible (#805)
  • Loading branch information
DrumsnChocolate authored Sep 10, 2023
1 parent 70ffcbd commit 281a73b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/menu-sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class='profile-menu {{if layoutManager.profileMenuOpen "open"}}'>
<MenuSidebarItem
@link='users.user'
@hasPermission={{can 'show activities'}}
@hasPermission={{can 'show individual users'}}
@icon='user'
@title={{t 'mixin.menuItems.profile'}}
@minor={{true}}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default class ProfileRoute extends AuthenticatedRoute {
@service router;

canAccess() {
return this.abilities.can('show users');
return this.abilities.can('show individual users');
}

redirect() {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/users/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class UserRoute extends AuthenticatedRoute {
}

canAccess() {
return this.abilities.can('show users');
return this.abilities.can('show individual users');
}

model(params) {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/users/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class UserIndexRoute extends AuthenticatedRoute {
link: 'users.user.index',
title: 'Algemeen',
linkArgument: user,
canAccess: this.abilities.can('show users'),
canAccess: this.abilities.can('show individual users'),
},
{
link: 'users.user.groups',
Expand Down

0 comments on commit 281a73b

Please sign in to comment.