77205: Use existing admin authorization guards for comm/coll

This commit is contained in:
Yura Bondarenko
2021-02-25 16:37:32 +01:00
parent 3f4e032bb5
commit 70e9bb1180
10 changed files with 33 additions and 114 deletions

View File

@@ -24,7 +24,7 @@ import { ReloadGuard } from './core/reload/reload.guard';
import { EndUserAgreementCurrentUserGuard } from './core/end-user-agreement/end-user-agreement-current-user.guard';
import { SiteRegisterGuard } from './core/data/feature-authorization/feature-authorization-guard/site-register.guard';
import { ForbiddenComponent } from './forbidden/forbidden.component';
import { CanManageGroupGuard } from './access-control/guards/can-manage-group.guard';
import { GroupAdministratorGuard } from './core/data/feature-authorization/feature-authorization-guard/group-administrator.guard';
@NgModule({
imports: [
@@ -180,7 +180,7 @@ import { CanManageGroupGuard } from './access-control/guards/can-manage-group.gu
{
path: ACCESS_CONTROL_MODULE_PATH,
loadChildren: () => import('./access-control/access-control.module').then((m) => m.AccessControlModule),
canActivate: [CanManageGroupGuard],
canActivate: [GroupAdministratorGuard],
},
{ path: '**', pathMatch: 'full', component: PageNotFoundComponent },
]}