fix bug in a migration
This commit is contained in:
parent
8fc5a4a092
commit
abfde388b7
@ -35,7 +35,7 @@ def downgrade():
|
||||
session = Session(bind=op.get_bind())
|
||||
|
||||
owner_and_admin = session.query(Role).filter(Role.name.in_(["owner", "admin"])).all()
|
||||
for role in owner_and_ccpo:
|
||||
for role in owner_and_admin:
|
||||
role.remove_permission(Permissions.EDIT_WORKSPACE_INFORMATION)
|
||||
session.add(role)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user