Skip to content

Commit

Permalink
Resolved spacing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AWearring authored Oct 15, 2024
1 parent 62f625b commit 00e076e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions localgov_alert_banner.install
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,18 @@ function localgov_alert_banner_update_9002() {
* from the toolbar.
*/
function localgov_alert_banner_update_10002() {
$module_handler = \Drupal::service('module_handler');
$module_handler = \Drupal::service('module_handler');

$perms[] = 'view the administration theme';
if ($module_handler->moduleExists('node')) {
$perms[] = 'access content overview';
}
if ($module_handler->moduleExists('toolbar')) {
$perms[] = 'access toolbar';
}
$perms[] = 'view the administration theme';
if ($module_handler->moduleExists('node')) {
$perms[] = 'access content overview';
}
if ($module_handler->moduleExists('toolbar')) {
$perms[] = 'access toolbar';
}

// Add and revoke permissions if emergency publisher exists.
if (Role::load('emergency_publisher') instanceof RoleInterface) {
// Add and revoke permissions if emergency publisher exists.
if (Role::load('emergency_publisher') instanceof RoleInterface) {
user_role_grant_permissions('emergency_publisher', $perms);
user_role_revoke_permissions('emergency_publisher', ['access administration pages']);
}
Expand Down

0 comments on commit 00e076e

Please sign in to comment.