diff options
| author | 2024-08-24 20:59:45 +0100 | |
|---|---|---|
| committer | 2024-08-24 20:59:45 +0100 | |
| commit | 7b3f61b1d4dcafbca7c8fcef35d6c3b2e097bb57 (patch) | |
| tree | 73fb18bd95edefd3322fd4c1207fddea935bb42e /thallium-backend/src | |
| parent | Don't hitt he db to get voucher info now that it's on the request state (diff) | |
Add a new permission for updating templates from printful
Diffstat (limited to 'thallium-backend/src')
| -rw-r--r-- | thallium-backend/src/dto/__init__.py | 4 | ||||
| -rw-r--r-- | thallium-backend/src/dto/users.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/thallium-backend/src/dto/__init__.py b/thallium-backend/src/dto/__init__.py index 92d3914..2a53355 100644 --- a/thallium-backend/src/dto/__init__.py +++ b/thallium-backend/src/dto/__init__.py @@ -1,5 +1,5 @@ from .login import VoucherClaim, VoucherLogin -from .users import User +from .users import User, UserPermission from .vouchers import Voucher -__all__ = ("LoginData", "User", "Voucher", "VoucherClaim", "VoucherLogin") +__all__ = ("LoginData", "User", "UserPermission", "Voucher", "VoucherClaim", "VoucherLogin") diff --git a/thallium-backend/src/dto/users.py b/thallium-backend/src/dto/users.py index 0d1cdac..35eadec 100644 --- a/thallium-backend/src/dto/users.py +++ b/thallium-backend/src/dto/users.py @@ -12,6 +12,7 @@ class UserPermission(IntFlag): REVOKE_VOUCHERS = 2**1 VIEW_PRODUCTS = 2**2 MANAGE_USERS = 2**3 + UPDATE_TEMPLATES = 2**4 class User(BaseModel): |