🧑💻(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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user