- Issue created by @duckydan
- πΊπΈUnited States duckydan
Additional info: It still works for user 1. It seems to be regular users that see the issue when going to a link that has a form where there exists a form mode controlled by form_mode_control. Even if that user is trying to look at the default form mode.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Liam Morland β made their first commit to this issueβs fork.
- Status changed to Needs review
about 1 year ago 9:18pm 20 December 2023 - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
I have seen this too. The problem is that in Drupal 10.2, the permission passed to
UserSession::hasPermission()
must be a string. It previously did not enforce this. The permission passed there comes fromform_mode_control_get_permission_by_mode_and_role()
, so that must always return a string instead of sometimes returning NULL. Fix attached and in the issue fork. - Status changed to RTBC
about 1 year ago 9:35pm 20 December 2023 - π«π·France andypost
The issue is that
form_mode_control_get_permission_by_mode_and_role()
may returnNULL
instead of stringNice fix
- Status changed to Needs review
about 1 year ago 9:49pm 20 December 2023 - Status changed to RTBC
about 1 year ago 10:15pm 20 December 2023 Is this ever going to be updated in a new release of the module? This is preventing core upgrades with a site breaking bug.
- πΊπ¦Ukraine quadrexdev Lutsk
Tested it on my project and it worked well, Drupal 10.2 +1 to RTBC
-
mandclu β
committed edc19250 on 8.x-2.x
Issue #3409223 by Liam Morland: Pass only strings to UserSession::...
-
mandclu β
committed edc19250 on 8.x-2.x
- Status changed to Fixed
10 months ago 5:37pm 28 February 2024 - π¨π¦Canada mandclu
Thanks @Liam Morland for the fix, and also thanks to everyone who provided input on this. The change has been merged in, and I will roll a new release shortly.
Automatically closed - issue fixed for 2 weeks with no activity.