lib: fix ak_is_group_member checking wrong groups

This commit is contained in:
Jens Langhammer 2021-01-28 22:30:59 +01:00
parent ac7b0ac965
commit c1563f4cff
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class BaseEvaluator:
@staticmethod
def expr_func_is_group_member(user: User, **group_filters) -> bool:
"""Check if `user` is member of group with name `group_name`"""
return user.groups.filter(**group_filters).exists()
return user.ak_groups.filter(**group_filters).exists()
def wrap_expression(self, expression: str, params: Iterable[str]) -> str:
"""Wrap expression in a function, call it, and save the result as `result`"""