소스 검색

change 'user' to 'active' in acl

ilya_shyian 1 년 전
부모
커밋
00bb70f54c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      store_back/apps/authAPI/schema.py

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

@@ -198,8 +198,8 @@ class UserUpsert(graphene.Mutation):
             if not info.context.user.is_superuser:
                 raise Exception("Authentication credentials were not provided")
             
-            new_user.is_active = "active" in "acl"
-            new_user.is_admin = "admin" in "acl"
+            new_user.is_active = "active" in acl
+            new_user.is_admin = "admin" in acl
 
         new_user.save()