make user 1 role root
This commit is contained in:
parent
9a31171336
commit
bf9921c8d6
@ -14,5 +14,13 @@
|
||||
*/
|
||||
function figli_starter_kit_install() {
|
||||
// Add code here to make nodes, terms, etc.
|
||||
|
||||
// Assign user 1 the "administrator" role.
|
||||
$user = User::load(1);
|
||||
$user->roles[] = 'root';
|
||||
$user->save();
|
||||
|
||||
// Don't do anything else during config sync.
|
||||
if (\Drupal::isConfigSyncing()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user