Task 004: add demo auth and role checks
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from src.domain.contracts.enums import Role
|
||||
|
||||
|
||||
ADMIN_ROLES = frozenset({Role.ADMIN})
|
||||
EDITOR_OR_ADMIN_ROLES = frozenset({Role.ADMIN, Role.EDITOR})
|
||||
Reference in New Issue
Block a user