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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m3avrck’s picture

Title: Typo in new PHP permission » Typo in new PHP permission and wrong description
FileSize
2.27 KB

Here'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).

m3avrck’s picture

FileSize
2.39 KB

And 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.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Dries’s picture

Status: Fixed » Closed (fixed)