fix logic for roles

This commit is contained in:
Davor 2022-05-20 13:52:22 +02:00 committed by Maarten de Waard
parent 732555ac6a
commit 19802f56eb
2 changed files with 5 additions and 8 deletions

View file

@ -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()