server: clean up the attributes, relax the substring filter conditions

This consolidates both user and group attributes in their map_{user,group}_attribute as the only point of parsing. It adds support for custom attribute filters for groups, and makes a SubString filter on an unknown attribute resolve to just false.
This commit is contained in:
Valentin Tolmer
2024-01-17 23:29:19 +01:00
committed by nitnelave
parent 4adb636d53
commit bd0a58b476
7 changed files with 283 additions and 163 deletions

View File

@@ -83,6 +83,7 @@ pub enum GroupRequestFilter {
GroupId(GroupId),
// Check if the group contains a user identified by uid.
Member(UserId),
AttributeEquality(AttributeName, Serialized),
}
impl From<bool> for GroupRequestFilter {