diff --git a/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java b/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java index 37b11d3d5..483c3855a 100644 --- a/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java +++ b/li.strolch.privilege/src/main/java/li/strolch/privilege/model/UserRep.java @@ -259,6 +259,18 @@ public class UserRep implements Serializable { return this.history; } + /** + * Returns true if the the given property exists + * + * @param key + * the property key to check + * + * @return true if the the given property exists + */ + public boolean hasProperty(String key) { + return this.properties.containsKey(key); + } + /** * Returns the property with the given key *