Only admins should be able to create new users (#895)
This commit is contained in:
parent
3089075324
commit
a6d8c833e6
2 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { AdminGuard } from '../_guards/admin.guard';
|
|||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{path: '**', component: DashboardComponent, pathMatch: 'full'},
|
||||
{path: '**', component: DashboardComponent, pathMatch: 'full', canActivate: [AdminGuard]},
|
||||
{
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AdminGuard],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue