From 46f947113c0f425b460f19dac93d9ffa7ee58d06 Mon Sep 17 00:00:00 2001 From: Gregor Tudan Date: Fri, 27 Nov 2015 21:22:14 +0100 Subject: [PATCH] KEYCLOAK-2163: require user admin role for clearing bruteforce detection status --- .../services/resources/admin/AttackDetectionResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/AttackDetectionResource.java b/services/src/main/java/org/keycloak/services/resources/admin/AttackDetectionResource.java index bc77c336c5..2a8e9245dd 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/AttackDetectionResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/AttackDetectionResource.java @@ -53,7 +53,7 @@ public class AttackDetectionResource { this.realm = realm; this.adminEvent = adminEvent.realm(realm); - auth.init(RealmAuth.Resource.REALM); + auth.init(RealmAuth.Resource.USER); } /**