fix logic for roles
This commit is contained in:
parent
732555ac6a
commit
19802f56eb
2 changed files with 5 additions and 8 deletions
|
|
@ -9,9 +9,4 @@ class RoleService:
|
|||
|
||||
@staticmethod
|
||||
def get_role_by_id(role_id):
|
||||
if role_id is None:
|
||||
role = Role()
|
||||
role.name = 'user'
|
||||
return role
|
||||
|
||||
return Role.query.filter_by(id=role_id).first()
|
||||
|
|
|
|||
Reference in a new issue