Problem/Motivation

Currently it is not able to create users with role/s

Given users:
      | name         | roles        |
      | Super editor | super_editor |

as the roles value will get in as string.

Proposed resolution

Prior to processing the user data check if roles offset is set and if so process it into array. Besides that make the users variable in DrupalContext protected so that extending classes can override the method to provide custom processing.

Remaining tasks

-

User interface changes

-

API changes

Comments

blueminds’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

Please see the patch.

  • Commit 52a2f7d on master authored by blueminds, committed by jhedstrom:
    Issue #2243217 by blueminds: Make it possible to create users with roles...
jhedstrom’s picture

Status: Needs review » Fixed

Committed. Thanks!

  • Commit 52a2f7d on master, 1.0 authored by blueminds, committed by jhedstrom:
    Issue #2243217 by blueminds: Make it possible to create users with roles...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

  • Commit 52a2f7d on master, 1.0, test-symfony authored by blueminds, committed by jhedstrom:
    Issue #2243217 by blueminds: Make it possible to create users with roles...