Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: access to profile #805

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading