Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move up the publish of draft to prevent publishing draft without policies assigned #4

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

beniusij
Copy link

We noticed that running policy updates does not add policies. After more in-depth investigation discovered that the update() function published the version of role draft that did not have policies assigned. Moving the call to publish function up before adding policies seem to fix this problem for now.

In the future, it would be nice to revise addPolicy() to not publish role draft on every new policy added.

@damianz5 damianz5 merged commit 47d032a into ezsystems:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants