Skip to content

Commit

Permalink
feat(GDU): actualiza control de permisos de GDU
Browse files Browse the repository at this point in the history
  • Loading branch information
plammel committed Sep 16, 2020
1 parent 6c509c8 commit 9c49100
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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([{
Expand Down
2 changes: 1 addition & 1 deletion src/app/apps/gestor-usuarios/views/usuarios-list.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
Expand Down

0 comments on commit 9c49100

Please sign in to comment.