File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default class User extends Ability {
1414 }
1515
1616 get canShowOwn ( ) {
17- return this . session . isAuthenticated ;
17+ return this . session . isAuthenticated && this . session . currentUser ?. id ;
1818 }
1919
2020 get canCreate ( ) {
Original file line number Diff line number Diff line change 3737 <div class =' profile-menu {{ if layoutManager.profileMenuOpen " open" }} ' >
3838 <MenuSidebarItem
3939 @link =' users.user'
40- @hasPermission ={{ can ' show individual users' }}
40+ @hasPermission ={{ can ' show own users' }}
4141 @icon =' user'
4242 @title ={{ t ' mixin.menuItems.profile' }}
4343 @minor ={{ true }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default class ProfileRoute extends AuthenticatedRoute {
55 @service router ;
66
77 canAccess ( ) {
8- return this . abilities . can ( 'show individual users' ) ;
8+ return this . abilities . can ( 'show own users' ) ;
99 }
1010
1111 redirect ( ) {
You can’t perform that action at this time.
0 commit comments