[Minor] properties are read-only on Certificate
This commit is contained in:
parent
1f28237091
commit
4627f59a80
|
@ -639,7 +639,7 @@ public class DefaultPrivilegeHandler implements PrivilegeHandler {
|
|||
|
||||
// make sure not a system user - they may not login in
|
||||
if (user.getUserState() == UserState.SYSTEM) {
|
||||
String msg = "User {0} is a system user and may no login!"; //$NON-NLS-1$
|
||||
String msg = "User {0} is a system user and may not login!"; //$NON-NLS-1$
|
||||
msg = MessageFormat.format(msg, username);
|
||||
throw new AccessDeniedException(msg);
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
package ch.eitchnet.privilege.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -88,7 +89,7 @@ public final class Certificate implements Serializable {
|
|||
else
|
||||
this.locale = locale;
|
||||
|
||||
this.propertyMap = propertyMap;
|
||||
this.propertyMap = Collections.unmodifiableMap(propertyMap);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue