From 581bb3531e86aacd7eed29c54fbf12f6e2840527 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 26 Jul 2026 18:53:13 +0200 Subject: [PATCH] auth: Merge User and Group even further (Kind.Both) Make Auth.Kind inherit from Flag rather than Enum, and introduce Kind.Both, allowing an entity to be both Group and User. Signed-off-by: Jan Lindemann --- src/python/jw/util/auth/Auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/jw/util/auth/Auth.py b/src/python/jw/util/auth/Auth.py index 68c205c..5fc3bb2 100644 --- a/src/python/jw/util/auth/Auth.py +++ b/src/python/jw/util/auth/Auth.py @@ -25,9 +25,10 @@ class ProjectFlags(Flag): # export Contributing = auto() Active = auto() -class Kind(Enum): +class Kind(Flag): Group = auto() User = auto() + Both = Group | User class Entity(abc.ABC): # export