mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +00:00
Resolve merge conflicts with Vertical Filtering and improve tests
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user