From 954605a804da399317ca62afa2fb9244afa11ebf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Oct 2017 16:55:03 +0200 Subject: Support roles with rights and add moderator role --- client/src/app/+admin/users/users.routes.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/app/+admin/users/users.routes.ts') diff --git a/client/src/app/+admin/users/users.routes.ts b/client/src/app/+admin/users/users.routes.ts index a6a9c4c19..3718dfd5c 100644 --- a/client/src/app/+admin/users/users.routes.ts +++ b/client/src/app/+admin/users/users.routes.ts @@ -1,5 +1,7 @@ import { Routes } from '@angular/router' +import { UserRightGuard } from '../../core' +import { UserRight } from '../../../../../shared' import { UsersComponent } from './users.component' import { UserAddComponent, UserUpdateComponent } from './user-edit' import { UserListComponent } from './user-list' @@ -8,6 +10,10 @@ export const UsersRoutes: Routes = [ { path: 'users', component: UsersComponent, + canActivate: [ UserRightGuard ], + data: { + userRight: UserRight.MANAGE_USERS + }, children: [ { path: '', -- cgit v1.2.3