Skip to content

Commit

Permalink
Merge pull request #498 from localgovdrupal/4.x
Browse files Browse the repository at this point in the history
4.0.1  release
  • Loading branch information
finnlewis authored Nov 19, 2024
2 parents 34575d2 + 88a7563 commit f2d8fb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"drupal/gin": "^3.0@RC",
"drupal/gin_login": "^2.0",
"drupal/gin_toolbar": "^1.0@RC",
"drupal/metatag": "^1.22",
"drupal/metatag": "^2.0.2",
"drupal/redirect": "^1.9",
"drupal/responsive_preview": "^2.1",
"localgovdrupal/localgov_blogs": "^1.0.0-beta3",
Expand Down
4 changes: 4 additions & 0 deletions localgov_microsites.install
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

use Drupal\user\Entity\Role;
use Drupal\user\Entity\User;

/**
* Implements hook_install().
Expand All @@ -23,6 +24,9 @@ function localgov_microsites_install() {
$role->grantPermission('administer redirects');
$role->save();
}

$admin = User::load(1);
$admin->addRole('microsites_controller');
}

/**
Expand Down

0 comments on commit f2d8fb9

Please sign in to comment.