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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-26 18:53:13 +02:00 • committed by janware DevOps
commit 581bb3531e
Signed by: DevOps
SSH key fingerprint: SHA256:cZiw7ExG5q3KAVm7Jse3rGITowu0VjgUgNMPbifmY8g

View file

@ -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