Fixed update level permission by db state on level seeding
All checks were successful
Deploy prod on push / pre-build (push) Successful in 1s
Deploy prod on push / build-bot (push) Successful in 3m14s
Deploy prod on push / build-web (push) Successful in 1m55s
Deploy prod on push / deploy (push) Successful in 25s

This commit is contained in:
Sven Heidemann 2024-02-12 14:59:36 +01:00
parent 414720f53b
commit 248d47c280

View File

@ -118,7 +118,7 @@ class LevelSeeder(DataSeederABC):
__name__,
f"Moved {role.name} from {role.position} to {new_position}",
)
await role.edit(permissions=level.permissions, position=new_position)
await role.edit(permissions=Permissions(level.permissions), position=new_position)
except Exception as e:
self._logger.error(__name__, f"Cannot change position of {role.name}", e)