allow admins to view cloud demos (#5436)

This commit is contained in:
Denys Vuika 2020-01-31 11:47:18 +00:00 committed by GitHub
parent 0256a16ea4
commit d37393b695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,13 @@ export const appRoutes: Routes = [
{ {
path: 'cloud', path: 'cloud',
canActivate: [AuthGuardSsoRoleService], canActivate: [AuthGuardSsoRoleService],
data: { roles: ['ACTIVITI_USER'], redirectUrl: '/error/403' }, data: {
roles: [
'ACTIVITI_USER',
'ACTIVITI_ADMIN'
],
redirectUrl: '/error/403'
},
children: [ children: [
{ {
path: '', path: '',
@ -188,7 +194,14 @@ export const appRoutes: Routes = [
{ {
path: ':appName', path: ':appName',
canActivate: [AuthGuardSsoRoleService], canActivate: [AuthGuardSsoRoleService],
data: { clientRoles: ['appName'], roles: ['ACTIVITI_USER'], redirectUrl: '/error/403' }, data: {
clientRoles: ['appName'],
roles: [
'ACTIVITI_USER',
'ACTIVITI_ADMIN'
],
redirectUrl: '/error/403'
},
children: [ children: [
{ {
path: '', path: '',