From a19e14068758fb7310e276607108dd17b3afad67 Mon Sep 17 00:00:00 2001 From: pierre-maraval Date: Tue, 18 Jun 2024 09:43:15 +0200 Subject: [PATCH] Refactor : Ajout groupe admin cbs a groupe admin item --- web/src/main/java/fr/abes/item/security/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/fr/abes/item/security/User.java b/web/src/main/java/fr/abes/item/security/User.java index 5b884bf1..fc79a71f 100644 --- a/web/src/main/java/fr/abes/item/security/User.java +++ b/web/src/main/java/fr/abes/item/security/User.java @@ -56,7 +56,7 @@ public String getRole() { if (role == null || role.isEmpty()) { if (this.userGroup.toLowerCase().trim().equals("coordinateur")) role = "USER"; - if (this.userGroup.toLowerCase().trim().equals("abes")) + if (this.userGroup.toLowerCase().trim().equals("abes") || this.userGroup.trim().equals("M1999")) role = "ADMIN"; } return this.role;