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.
Typo in block.module. New permission is set as: 'use PHP for block visibility'
but on line 360, access check is: $access = user_access('Use PHP for block visibility');
Access check is case sensitive, this patch fixes that.
Comment | File | Size | Author |
---|---|---|---|
#2 | block.module_13.patch | 2.39 KB | m3avrck |
#1 | block.module_12.patch | 2.27 KB | m3avrck |
block.module_11.patch | 659 bytes | m3avrck | |
Comments
Comment #1
m3avrck CreditAttribution: m3avrck commentedHere's a better patch, it also prevents the PHP help text from being shown if the user doesn't have that permission (just like the option is hidden).
Comment #2
m3avrck CreditAttribution: m3avrck commentedAnd the best patch, don't display empty fieldsets if the user doesn't have the PHP permission and one has already been set, usability fix.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #4
Dries CreditAttribution: Dries commented