make user 1 role root
This commit is contained in:
		@@ -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;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user