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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃帹 unique constraint for permission and role name #7674

Merged

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Nov 4, 2016

no issue

I saw tests adding permissions and roles twice. (see screenshots)

twice

That happened because the setup in the test was mis-used and there is no restriction for static resources to create duplicates. We also have a unique constraint for settings keys.

With this PR i suggest to make name unique.

no issue

I saw tests adding permissions and roles twice. (see screenshots)
That happened because the setup in the test was mis-used and there is no restriction for static resources to create duplicates.
With this PR i suggest to make name unique.
@kirrg001
Copy link
Contributor Author

kirrg001 commented Nov 4, 2016

This PR needs a review before #7495

@ErisDS ErisDS merged commit b48031f into TryGhost:master Nov 9, 2016
geekhuyang pushed a commit to geekhuyang/Ghost that referenced this pull request Nov 20, 2016
refs TryGhost#7494,  refs TryGhost#7495 

I saw tests adding permissions and roles twice. (see screenshots)
That happened because the setup in the test was mis-used and there is no restriction for static resources to create duplicates.
With this PR i suggest to make name unique.
@ErisDS ErisDS removed their assignment Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants