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/friends/friends.routes.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/app/+admin/friends') diff --git a/client/src/app/+admin/friends/friends.routes.ts b/client/src/app/+admin/friends/friends.routes.ts index 615b6f4f7..61cfcae19 100644 --- a/client/src/app/+admin/friends/friends.routes.ts +++ b/client/src/app/+admin/friends/friends.routes.ts @@ -1,13 +1,19 @@ import { Routes } from '@angular/router' +import { UserRightGuard } from '../../core' import { FriendsComponent } from './friends.component' import { FriendAddComponent } from './friend-add' import { FriendListComponent } from './friend-list' +import { UserRight } from '../../../../../shared' export const FriendsRoutes: Routes = [ { path: 'friends', component: FriendsComponent, + canActivate: [ UserRightGuard ], + data: { + userRight: UserRight.MANAGE_PODS + }, children: [ { path: '', -- cgit v1.2.3