Browse Source

change is_active field in UserType

ilya_shyian 1 year ago
parent
commit
6a3f40b073
1 changed files with 2 additions and 1 deletions
  1. 2 1
      store_back/apps/authAPI/schema.py

+ 2 - 1
store_back/apps/authAPI/schema.py

@@ -47,7 +47,8 @@ class UserType(graphene.ObjectType):
 
 
     def resolve_is_active(self,info):
-        return self.is_active
+        user = User.objects.get(_id = self._id)
+        return user.is_active
 
 
     def resolve_acl(self,info):