You are here

function toolbar_themes_update_8001 in Toolbar Themes 8

Assign "Configure administration toolbar themes" permission to all roles.

File

./toolbar_themes.install, line 28

Code

function toolbar_themes_update_8001() {
  if ($roles = user_roles(FALSE, 'access toolbar')) {
    foreach ($roles as $rid => $role) {
      user_role_grant_permissions($rid, [
        'configure toolbar_themes',
      ]);
    }
  }
}