When logged in as User 1 on the site I have to have one of the roles that are allowed to see the debug blocks. We should make User 1 the exception (this is usually the standard). I would hate to go and create a role that is only used for allowing User 1 to see the debug blocks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cellar Door’s picture

Status: Active » Needs review
FileSize
898 bytes

Patched the Alpha template.php to look for the uid as well as the role of the user.

fubhy’s picture

Status: Needs review » Needs work
+  global $user;
+  if (($theme->settings['debug']['access'] || $user->uid == 1) && ($theme->settings['debug']['grid'] || $theme->settings['debug']['block'])) {

Please use $GLOBALS['user']->uid instead. Other than that it looks fine to me.

Cellar Door’s picture

Fixed w/ the new patch

Cellar Door’s picture

Status: Needs work » Needs review
Cellar Door’s picture

Now with the right fix :)

Cellar Door’s picture

Assigned: Unassigned » himerus
Status: Needs review » Patch (to be ported)

Simple fix

himerus’s picture

Assigned: himerus » Unassigned
Category: support » bug
Status: Patch (to be ported) » Fixed

patch failed to apply cleanly, but the one-liner was easy enough just to paste in.
Added to 3.1 release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.