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

LIbrary allows create two groups with same name #147

Closed
nicojmb opened this issue Dec 17, 2019 · 1 comment · Fixed by #166
Closed

LIbrary allows create two groups with same name #147

nicojmb opened this issue Dec 17, 2019 · 1 comment · Fixed by #166
Labels

Comments

@nicojmb
Copy link

nicojmb commented Dec 17, 2019

Hi,

If i run twice

$this->authorize->createGroup('backend.dashboard');

The system create two groups in DB with same name and different id, the system should prevent this and do nothig or generate a error.

In permissions same problem, if i assign same permission, create a duplicate row in database.

@lonnieezell
Copy link
Owner

Good catch. Thanks! I'll try to get this fixed in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants