Download & Extend

Debug Blocks User 1 Exception

Project:Omega
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Status:active» needs review

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

AttachmentSizeStatusTest resultOperations
omega-debug-user-1-1408516-2.patch898 bytesIgnored: Check issue status.NoneNone

#2

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.

#3

Fixed w/ the new patch

AttachmentSizeStatusTest resultOperations
omega-debug-user-1-1408516-2.patch891 bytesIgnored: Check issue status.NoneNone

#4

Status:needs work» needs review

#5

Now with the right fix :)

AttachmentSizeStatusTest resultOperations
omega-debug-user-1-1408516-2.patch892 bytesIgnored: Check issue status.NoneNone

#6

Assigned to:Anonymous» himerus
Status:needs review» patch (to be ported)

Simple fix

#7

Category:support request» bug report
Assigned to:himerus» Anonymous
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.

#8

Status:fixed» closed (fixed)

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

nobody click here