Simplify coach sidebar navigation
This commit is contained in:
parent
2c902aa822
commit
449541f6b8
@ -148,6 +148,10 @@ export default function LayoutAuthenticated({ children, permission }: Props) {
|
||||
return item.href === '/client-portal' || item.href === '/profile';
|
||||
}
|
||||
|
||||
if (item.href === '/client-portal' || item.href === '/users/users-list') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!item.permission) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user