diff --git a/database/repositories/groups.py b/database/repositories/groups.py index 0fd7540..9810c2d 100644 --- a/database/repositories/groups.py +++ b/database/repositories/groups.py @@ -85,7 +85,7 @@ def get_player_permissions( user_id: int, session: Session | None = None ) -> int: - return session.query(func.sum(DBGroup.bancho_permissions)) \ + return session.query(func.bit_or(DBGroup.bancho_permissions)) \ .join(DBGroupEntry) \ .filter(DBGroupEntry.user_id == user_id) \ .scalar() or 0