Skip to content

Commit d3c7e84

Browse files
committed
[Fix]: ESlint 4
1 parent 80336f5 commit d3c7e84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quickdo/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def register_user(full_name, email, password, redirect_to="/quickdo"):
676676
# ! FOR NOW AS A QUICKDO USER
677677
# ? SET DEFAULT ROLES TO THE USER
678678
default_role = "QuickDo User"
679-
if default_role:
679+
if isinstance(default_role, str) and default_role.strip():
680680
user.add_roles(default_role)
681681

682682
# ? SET THE DEFAULT REDIRECT PATH AFTER LOGIN

0 commit comments

Comments
 (0)