Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove code to add non-existent administrator role. #794

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions localgov.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Install functions for the LocalGovInstall installation profile.
*/

use Drupal\user\Entity\User;
use Drupal\views\Entity\View;

/**
Expand All @@ -19,11 +18,6 @@ function localgov_install() {

$config_factory = \Drupal::configFactory();

// Assign user 1 the "administrator" role.
$user = User::load(1);
$user->roles[] = 'administrator';
$user->save();

// Disable the frontpage view.
$frontpage_view = View::load('frontpage');
$frontpage_view->setStatus(FALSE)->save();
Expand Down
Loading