Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
userprotect_check_bypass() checks the $bypass_defaults array by key. userprotect_administrator_bypass_defaults() creates a linear array (wrong), whereas a saved settings form creates an associative array (correct). Because of this bug, upon initial install, the default administrator bypass setting is effectively nothing, rather than everything as the setting form seems to indicate. Simple patch though.
Comment | File | Size | Author |
---|---|---|---|
userprotect_bypass_defaults.patch | 333 bytes | cedarm | |
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedcommitted to 5.x-1.x-dev and 6.x-1.x-dev -- thanks!