소스 검색

change acl in user mutate

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

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

@@ -212,7 +212,7 @@ class UserUpsert(graphene.Mutation):
                 raise Exception("Authentication credentials were not provided")
             
             new_user.is_active = "active" in acl
-            new_user.is_admin = "admin" in acl
+            new_user.is_superuser = "admin" in acl
 
         new_user.save()