From 50515a3dafbfc9100c6eb6d8a8c672349a4ad8d7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 22 Jan 2013 14:41:34 +0000 Subject: [PATCH] bad idea :-( git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436967 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/redback/configuration/UserConfigurationKeys.java | 2 +- .../integration/checks/security/GuestUserEnvironmentCheck.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java index 1ee21b036..ade7bee3b 100644 --- a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java +++ b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java @@ -32,7 +32,7 @@ public interface UserConfigurationKeys String DEFAULT_GUEST = "redback.default.guest"; - String DEFAULT_GUEST_ROLE = "redback.default.role.guest"; + String DEFAULT_GUEST_ROLE_ID = "redback.default.role.guest.id"; String EMAIL_FROM_ADDRESS = "email.from.address"; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java b/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java index 6c3e04e41..1d0052ac8 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java @@ -97,7 +97,7 @@ public class GuestUserEnvironmentCheck try { - roleManager.assignRole( config.getString( UserConfigurationKeys.DEFAULT_GUEST_ROLE, "Guest" ), + roleManager.assignRole( config.getString( UserConfigurationKeys.DEFAULT_GUEST_ROLE_ID, "guest" ), guest.getUsername() ); } catch ( RoleManagerException rpe ) -- 2.39.5