You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError
BookStack\Auth\Permissions\PermissionsRepo::deleteRole(): Argument #2 ($migrateRoleId) must be of type int, string given, called in /var/www/bookstack/app/Http/Controllers/RoleController.php on line 154
Steps to Reproduce
Select a role
Click Delete role
Leave drop-down unchanged at Don't migrate users
Click Confirm
Expected Behaviour
Role is delete and the ui returned to role list view.
ChriFo
changed the title
Migrate user to other role when deleting role not working
Delete role without migrating to other role not working
Mar 24, 2023
Thanks for reporting again @ChriFo.
Can confirm, and have patched with testing to cover this scenario in dde38e9.
Since that's a couple of potentially annoying bugs, and since we're a couple of weeks out from a feature release, I'll backport the pending fixes to get a patch release out soon.
Describe the Bug
Instead an error appeared:
Steps to Reproduce
Delete role
Don't migrate users
Confirm
Expected Behaviour
Role is delete and the ui returned to role list view.
Screenshots or Additional Context
Stacktrace
Browser Details
No response
Exact BookStack Version
v23.02.1
PHP Version
8.1.16
Hosting Environment
Alpine-based Docker setup inspired by https://github.com/linuxserver/docker-bookstack
The text was updated successfully, but these errors were encountered: