mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed add service issue
This commit is contained in:
@@ -86,7 +86,7 @@ class ServiceAccount(models.Model):
|
|||||||
if not self.username:
|
if not self.username:
|
||||||
self.username = self.user.username
|
self.username = self.user.username
|
||||||
|
|
||||||
api = self.service.api_class()
|
api = self.service.api_class
|
||||||
|
|
||||||
if self.active:
|
if self.active:
|
||||||
if not api.check_user(self.username):
|
if not api.check_user(self.username):
|
||||||
|
|||||||
Reference in New Issue
Block a user