Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDU: actualiza control de permisos de GDU #1912

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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