Skip to content

Commit fcebe8c

Browse files
committed
🐛 [BUG-FIX] To ISSUE mongodb-labs#36 (mongodb-labs#37)
1 parent 9b4cb10 commit fcebe8c

File tree

1 file changed

+4
-4
lines changed
  • {{cookiecutter.project_slug}}/backend/app/app/crud

1 file changed

+4
-4
lines changed

{{cookiecutter.project_slug}}/backend/app/app/crud/crud_user.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ async def toggle_user_state(self, db: AgnosticDatabase, *, obj_in: Union[UserUpd
7878
return await self.update(db=db, db_obj=db_obj, obj_in=obj_in)
7979

8080
@staticmethod
81-
def has_password(self, user: User) -> bool:
81+
def has_password(user: User) -> bool:
8282
return user.hashed_password is not None
8383

8484
@staticmethod
85-
def is_active(self, user: User) -> bool:
85+
def is_active(user: User) -> bool:
8686
return user.is_active
8787

8888
@staticmethod
89-
def is_superuser(self, user: User) -> bool:
89+
def is_superuser(user: User) -> bool:
9090
return user.is_superuser
9191

9292
@staticmethod
93-
def is_email_validated(self, user: User) -> bool:
93+
def is_email_validated(user: User) -> bool:
9494
return user.email_validated
9595

9696

0 commit comments

Comments
 (0)