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

fubhy’s picture

Status: Postponed (maintainer needs more info) » Active
fubhy’s picture

Status: Active » Postponed (maintainer needs more info)
justclint’s picture

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

digidev’s picture

Same issue here (using Drupal 7.7, fresh install).

fubhy’s picture

Status: Active » Fixed

Fixed

Status: Fixed » Closed (fixed)

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