mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-09 12:29:13 +00:00
impersonation implementado
This commit is contained in:
@ -149,6 +149,10 @@ public class SecurityConfig {
|
||||
"/pagos/redsys/**"
|
||||
)
|
||||
.permitAll()
|
||||
.requestMatchers("/impersonate/exit")
|
||||
.hasRole("PREVIOUS_ADMINISTRATOR")
|
||||
.requestMatchers("/impersonate")
|
||||
.hasAnyRole("SUPERADMIN", "ADMIN")
|
||||
.requestMatchers("/users/**").hasAnyRole("SUPERADMIN", "ADMIN")
|
||||
.anyRequest().authenticated())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user