Task 004: add demo auth and role checks

This commit is contained in:
2026-05-21 18:31:40 +03:00
parent 7a11d50aa7
commit 7972e9a95f
26 changed files with 2207 additions and 23 deletions
+7
View File
@@ -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})