Allow a user to have a scope

Description

Background

See
See spike

Requirements

  • Add a select box with "Scope" when creating or editing a user (at /admin/user/1 and /admin/user/new)

  • The select box contains: all user scopes that have been created () + the scope "Integrated". The scope "Integrated" is the default value

  • Add the same select box when add / edit a relation with "Enable login" (/admin/content/new?type=person)

  • Store the user scope

  • Set the unique to a combination of scope / username (instead of only the username)

  • Do not allow to remove a scope, when it is in use by a user

  • Add user scope to the Behat test at https://github.com/integratedfordevelopers/integrated/blob/0.7/features/user.feature

Technical tasks

None

Deployment actions

Call the following commands:
doctrine:schema:update command
init:scope command

Activity

Show:
Jeroen van Leeuwen
May 17, 2017, 1:17 PM

dit is de issue.

Marijn Otte
May 17, 2017, 8:00 PM
  • "The scope "Integrated" is the default value" --> currently it is not when I go to /admin/user/new

  • When a try to remove a scope which is in use by a user, I get a 500 error instead of a friendly message

  • Please change the "This username is already in use" message to "This username is already in use in this scope"
    The background in says "The "Integrated" scope is a special scope: always available (not stored in database) and the scope for log in to Integrated". This requirement is implemented a little different. The different implementation is OK, but needs two other requirements:

  • Please add the init:scope command to the composer.json of the skeleton, to make sure it is executed on new installations

  • Please hide the Integrated scope on the scope overview (/admin/scope/)

Jeroen van Leeuwen
May 18, 2017, 6:33 AM

some feedback changes. I still need the add some changes to the skeleton so can you put this issue back to me after the review?

Michael Jongman
May 18, 2017, 6:37 AM

Merged the PR, you can make the changes to the skeleton.

API
May 19, 2017, 12:03 PM

.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure