-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.5
-
None
public function role_remove($role_name) in \phpbb\db\migration\tool\permission.php doesn't correctly handle role removal like does the function remove_role($role_id, $permission_type) in \includes\acp\acp_permission_roles.php.
In particular, it misses unsetting related permissions and group/user role removals. This may lead to cases when groups/users have non-existant roles assigned and to some errors during installation of extensions, like
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/migration/tool/permission.php on line 428: Trying to access array offset on value of type bool
|
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/migration/tool/permission.php on line 429: Trying to access array offset on value of type bool
|
Something went wrong during the request and an exception was thrown. The changes made before the error occurred were reversed to the best of our abilities, but you should check the board for errors. The permission role "" unexpectedly does not exist.
|
- caused
-
PHPBB-16973 Remove orphaned roles migration may incorrectly remove role-based group permissions
- Closed