@@ -24,6 +24,7 @@ import { ProjectMembersComponent } from './features/projects/components/project-
2424import { ActivityLogComponent } from './features/activity/components/activity-log/activity-log.component' ;
2525import { managerOrAdminGuard } from './core/auth/guards/manager-or-admin.guard' ;
2626import { AppSettingsComponent } from './features/settings/components/app-settings/app-settings.component' ;
27+ import { nonProjectManagerGuard } from './core/auth/guards/non-project-manager.guard' ;
2728
2829export const routes : Routes = [
2930 { path : '' , component : LandingPageComponent } ,
@@ -43,7 +44,7 @@ export const routes: Routes = [
4344 { path : 'profile' , component : UserProfileSecurityComponent , canActivate : [ authGuard ] } ,
4445 { path : 'admin' , component : AdminDashboardComponent , canActivate : [ authGuard , adminRoleGuard ] } ,
4546 { path : 'tasks/create' , component : TaskItemCreateComponent , canActivate : [ authGuard ] } ,
46- { path : 'tasks/my-tasks' , component : UserTaskItemsComponent , canActivate : [ authGuard ] } ,
47+ { path : 'tasks/my-tasks' , component : UserTaskItemsComponent , canActivate : [ authGuard , nonProjectManagerGuard ] } ,
4748 { path : 'login' , component : HomeLoginComponent } ,
4849 { path : 'callback' , component : AuthCallbackComponent } ,
4950 { path : 'notfound' , redirectTo : 'not-found' } ,
0 commit comments