Skip to content

Commit 6d62906

Browse files
atarix83vins01-4science
authored andcommitted
Merged in task/dspace-cris-2024_02_x/DSC-2506 (pull request DSpace#3589)
[DSC-2506] Remove top level guard from admin routes Approved-by: Vincenzo Mecca
2 parents 942cecf + b359e9e commit 6d62906

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/app-routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { COMMUNITY_MODULE_PATH } from './community-page/community-page-routing-p
3030
import { authBlockingGuard } from './core/auth/auth-blocking.guard';
3131
import { authenticatedGuard } from './core/auth/authenticated.guard';
3232
import { groupAdministratorGuard } from './core/data/feature-authorization/feature-authorization-guard/group-administrator.guard';
33-
import { siteAdministratorGuard } from './core/data/feature-authorization/feature-authorization-guard/site-administrator.guard';
3433
import { siteRegisterGuard } from './core/data/feature-authorization/feature-authorization-guard/site-register.guard';
3534
import { endUserAgreementCurrentUserGuard } from './core/end-user-agreement/end-user-agreement-current-user.guard';
3635
import { reloadGuard } from './core/reload/reload.guard';
@@ -172,7 +171,7 @@ export const APP_ROUTES: Route[] = [
172171
path: ADMIN_MODULE_PATH,
173172
loadChildren: () => import('./admin/admin-routes')
174173
.then((m) => m.ROUTES),
175-
canActivate: [siteAdministratorGuard, endUserAgreementCurrentUserGuard],
174+
canActivate: [authenticatedGuard, endUserAgreementCurrentUserGuard],
176175
},
177176
{
178177
path: NOTIFICATIONS_MODULE_PATH,

0 commit comments

Comments
 (0)