🧑‍💻(backend) do not allow to delete a domain

At the moment a domain cannot be deleted.
We will be able to delete only pending domains and
simply turn to disabled an enabled domain.
This commit is contained in:
Sabrina Demagny
2024-08-02 16:28:23 +02:00
parent 63dee08be5
commit b1e1de0269
2 changed files with 3 additions and 72 deletions

View File

@@ -14,7 +14,6 @@ class MailDomainViewSet(
mixins.CreateModelMixin,
mixins.ListModelMixin,
mixins.RetrieveModelMixin,
mixins.DestroyModelMixin,
viewsets.GenericViewSet,
):
"""
@@ -29,9 +28,6 @@ class MailDomainViewSet(
POST /api/<version>/mail-domains/ with expected data:
- name: str
Return newly created domain
DELETE /api/<version>/mail-domains/<domain-slug>/
Delete targeted team access
"""
permission_classes = [permissions.AccessPermission]