Fixed update level permission by db state on level seeding
This commit is contained in:
parent
414720f53b
commit
248d47c280
@ -118,7 +118,7 @@ class LevelSeeder(DataSeederABC):
|
|||||||
__name__,
|
__name__,
|
||||||
f"Moved {role.name} from {role.position} to {new_position}",
|
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:
|
except Exception as e:
|
||||||
self._logger.error(__name__, f"Cannot change position of {role.name}", e)
|
self._logger.error(__name__, f"Cannot change position of {role.name}", e)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user