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:
parent
9323529187
commit
581bb3531e
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue