server: Fix implementation of attribute present filter
Instead of just doing a schema check, this actually looks for users that have a value for this attribute.
This commit is contained in:
committed by
nitnelave
parent
ee7f9c9f41
commit
09c5d9f925
@@ -61,6 +61,7 @@ pub enum UserRequestFilter {
|
||||
MemberOf(GroupName),
|
||||
// Same, by id.
|
||||
MemberOfId(GroupId),
|
||||
CustomAttributePresent(AttributeName),
|
||||
}
|
||||
|
||||
impl From<bool> for UserRequestFilter {
|
||||
@@ -85,6 +86,7 @@ pub enum GroupRequestFilter {
|
||||
// Check if the group contains a user identified by uid.
|
||||
Member(UserId),
|
||||
AttributeEquality(AttributeName, Serialized),
|
||||
CustomAttributePresent(AttributeName),
|
||||
}
|
||||
|
||||
impl From<bool> for GroupRequestFilter {
|
||||
|
||||
Reference in New Issue
Block a user