mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Removed the check, we want to force deletion
This commit is contained in:
@@ -180,7 +180,6 @@ class ServiceAccount(models.Model):
|
||||
@staticmethod
|
||||
def pre_delete_listener( **kwargs ):
|
||||
api = kwargs['instance'].service.api_class
|
||||
if api.check_user(kwargs['instance'].service_uid):
|
||||
if not api.delete_user(kwargs['instance'].service_uid):
|
||||
raise ServiceError('Unable to delete account on related service')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user