Posted by FatGuyLaughing on January 17, 2012 at 11:53pm
5 followers
| 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
Patched the Alpha template.php to look for the uid as well as the role of the user.
#2
+ 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
#4
#5
Now with the right fix :)
#6
Simple fix
#7
patch failed to apply cleanly, but the one-liner was easy enough just to paste in.
Added to 3.1 release.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.