Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Cannot create roles with cross-dependencies #272

Closed
grtjn opened this issue Aug 25, 2014 · 2 comments
Closed

Cannot create roles with cross-dependencies #272

grtjn opened this issue Aug 25, 2014 · 2 comments
Milestone

Comments

@grtjn
Copy link
Contributor

grtjn commented Aug 25, 2014

If you create two roles that refer to each other from default-permissions, bootstrap fails. Setup code is such that it doesn't create all roles first, but iterates per role to create role, and add permissions afterwards. That works if there is no cross-dependency, only dependencies to anything that came before in ml-config.

@grtjn
Copy link
Contributor Author

grtjn commented Aug 26, 2014

Easy to fix if you copy the first piece of the loop in setup:create-roles, and make it create all roles first before continuing with anything else..

@paxtonhare
Copy link
Contributor

fixed in dev

@paxtonhare paxtonhare modified the milestone: v1.6 Oct 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants