I disabled the debug feature for some roles in appearance settings (debugging), but the debug blocks are still available for unselected roles.
@see in sites/all/themes/omega/alpha/includes/alpha.inc lines 350ff in
function alpha_grid_include($columns) {
[...]
the value for $theme->settings['debug']['access'] is being cached
Solved that problem with the following workaround:
Implemented hook_alpha_alter to override the cached settings:
function MYTHEME_alpha_alter(&$data, $context1, $context2) {
$roles = array_keys(array_filter(alpha_theme_get_setting('alpha_debug_grid_roles', array(), 'MYTHEME')));
$data->settings['debug']['access'] = alpha_debug_access($GLOBALS['user'], $roles);
}
Comments
Comment #1
fubhy commentedComment #2
fubhy commentedComment #3
justclint commentedIm getting similar results.
If I set check just admin role the grid/blocks is viewable even by anonymous users.
If I just check authenticated role or just the anonymous role then no grids/blocks show up even when logged in.
This is on a fresh d7 install no with no additional modules or themes installed.
Comment #4
digidev commentedSame issue here (using Drupal 7.7, fresh install).
Comment #5
fubhy commentedFixed