Skip to content
Permalink
Browse files

Add authenticated users to user generation (#3946)

  • Loading branch information...
LOBsTerr committed Apr 10, 2019
1 parent a267393 commit f7cf0fd1c27d0f2a07cfc4afe4775f62edc844fd
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Command/Create/UsersCommand.php
  2. +1 −1 src/Command/User/CreateCommand.php
  3. +1 −1 src/Utils/DrupalApi.php
@@ -89,7 +89,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
{
$rids = $input->getArgument('roles');
if (!$rids) {
$roles = $this->drupalApi->getRoles();
$roles = $this->drupalApi->getRoles(true, true);
$rids = $this->getIo()->choice(
$this->trans('commands.create.users.questions.roles'),
array_values($roles),
@@ -184,7 +184,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
$roles = $input->getOption('roles');
if (!$roles) {
$systemRoles = $this->drupalApi->getRoles(false, false, false);
$systemRoles = $this->drupalApi->getRoles(true, true, false);
$roles = $this->getIo()->choice(
$this->trans('commands.user.create.questions.roles'),
array_values($systemRoles),
@@ -131,7 +131,7 @@ public function getVocabularies()
*
* @return array
*/
public function getRoles($reset=false, $authenticated=false, $anonymous=false)
public function getRoles($reset = false, $authenticated = false, $anonymous = false)
{
if ($reset || !$this->roles) {
$roles = $this->entityTypeManager->getStorage('user_role')->loadMultiple();

0 comments on commit f7cf0fd

Please sign in to comment.
You can’t perform that action at this time.