diff --git a/src/app/apps/gestor-usuarios/components/perfiles-detail.component.ts b/src/app/apps/gestor-usuarios/components/perfiles-detail.component.ts index 903d411979..d28b06c06a 100644 --- a/src/app/apps/gestor-usuarios/components/perfiles-detail.component.ts +++ b/src/app/apps/gestor-usuarios/components/perfiles-detail.component.ts @@ -17,7 +17,7 @@ import { ArbolPermisosComponent } from './arbol-permisos/arbol-permisos.componen export class PerfilDetailComponent implements OnInit { @ViewChild(ArbolPermisosComponent, { static: false }) arbol: ArbolPermisosComponent; - public canGlobal = this.auth.check('global:usuarios:perfiles:write'); + public canGlobal = this.auth.check('global:usuarios:perfiles'); public perfil = null; public esGlobal = false; diff --git a/src/app/apps/gestor-usuarios/views/perfiles-list.component.ts b/src/app/apps/gestor-usuarios/views/perfiles-list.component.ts index 74ff7d7226..e89ce43843 100644 --- a/src/app/apps/gestor-usuarios/views/perfiles-list.component.ts +++ b/src/app/apps/gestor-usuarios/views/perfiles-list.component.ts @@ -24,7 +24,7 @@ export class PerfilListComponent implements OnInit { } ngOnInit() { - if (!(this.auth.check('usuarios:perfiles:write') || this.auth.check('global:usuarios:perfiles:write'))) { + if (!(this.auth.check('usuarios:perfiles') || this.auth.check('global:usuarios:perfiles'))) { this.router.navigate(['inicio']); } this.plex.updateTitle([{ diff --git a/src/app/apps/gestor-usuarios/views/usuarios-list.view.ts b/src/app/apps/gestor-usuarios/views/usuarios-list.view.ts index 302765f26d..96b9e7fb6c 100644 --- a/src/app/apps/gestor-usuarios/views/usuarios-list.view.ts +++ b/src/app/apps/gestor-usuarios/views/usuarios-list.view.ts @@ -25,7 +25,7 @@ export class UsuariosListComponent implements OnInit { ) { } - public verPerfiles = this.auth.check('usuarios:perfiles:write') || this.auth.check('global:usuarios:perfiles:write'); + public verPerfiles = this.auth.check('usuarios:perfiles') || this.auth.check('global:usuarios:perfiles'); public readOnly = !this.auth.check('usuarios:write'); refresh = new BehaviorSubject({});