Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Give CREATE_PROJECT action permissions to users on first login (SSO)#577

Merged
tschaffter merged 3 commits intodevelopfrom
develop-fix-571
Oct 15, 2019
Merged

Give CREATE_PROJECT action permissions to users on first login (SSO)#577
tschaffter merged 3 commits intodevelopfrom
develop-fix-571

Conversation

@tschaffter
Copy link
Collaborator

…irst time using one of the SSO strategies available (#571)

…irst time using one of the SSO strategies available (#571)
@tschaffter
Copy link
Collaborator Author

Notes on this PR

  • Users requires the action-permission CREATE_PROJECT as defined in server/config/environment/shared.js in order to be able to create a project (client side check only).
  • This PR create this action-permission the first time a user logs in using one of the SSO strategies available.
  • If an existing DB is used, returning users will not benefit from chance. Either 1) delete the content of the users collection or 2) Manually create an action-permission for the existing users in the collection action-permissions.

@tschaffter
Copy link
Collaborator Author

@ychae @ksuruli Testing this solution requires to have an SSO strategy configured which I don't have. Is there a way for you to test this PR before I merge it to the branch develop?

@tschaffter tschaffter changed the title Create action-permission CREATE_PROJECT when a user logs in for the f… Give CREATE_PROJECT action permissions to users on first login (SSO) Oct 15, 2019
@tschaffter tschaffter merged commit 1486b35 into develop Oct 15, 2019
@tschaffter
Copy link
Collaborator Author

@ychae @ksuruli This PR should implement #577 and has been merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant