Resolve merge conflicts with Vertical Filtering and improve tests

This commit is contained in:
IvanaH8
2021-03-24 13:39:59 +01:00
89 changed files with 1645 additions and 1711 deletions

View File

@@ -626,8 +626,8 @@ class APIToken(Hashed, Base):
db.add(orm_token)
# load default roles if they haven't been initiated
# correct to have this here? otherwise some tests fail
user_role = Role.find(db, 'user')
if not user_role:
token_role = Role.find(db, 'token')
if not token_role:
default_roles = get_default_roles()
for role in default_roles:
add_role(db, role)