diff --git a/backend/utils/auth.py b/backend/utils/auth.py index fe60db9..1829726 100644 --- a/backend/utils/auth.py +++ b/backend/utils/auth.py @@ -6,7 +6,7 @@ from ..constants import UserRole def requires_role(roles=None): if roles is None: - roles = [UserRole.USER] + roles = [UserRole.USER, UserRole.ADMIN] roles = [int(r) for r in roles] def decorator(f): @wraps(f)