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

Roles tuning is bugged #145

Closed
donotos opened this issue Apr 8, 2020 · 4 comments
Closed

Roles tuning is bugged #145

donotos opened this issue Apr 8, 2020 · 4 comments

Comments

@donotos
Copy link

donotos commented Apr 8, 2020

Hello
I wanted to test using roles to restrict access to some library but it does not work as expected. When i tick library 1 and save, it does not keep the change and no library is selected when i go back to the role.
When i tick library 2 and save all library are selected when i go back to the role. It does one of the two above when i tick library 3 an 4.

Thanks.

@pierobot
Copy link
Owner

pierobot commented Apr 8, 2020

Hi, I've found this to be caused by a lack of permissions being created for libraries after migrations.
Try running php artisan db:seed and let me know if that fixes it for you.

I'll find a way to have this done automatically. I'll sticky in case someone else has this problem.

@pierobot pierobot pinned this issue Apr 8, 2020
@donotos
Copy link
Author

donotos commented Apr 8, 2020

does not seems to work. i used --force but it's the same:

root@mangapie:/var/www/mangapie# php artisan db:seed --force
Seeding: UsersTableSeeder
Users table is not empty, skipping...
Seeding: GenresTableSeeder
Genres table is not empty, skipping...
Seeding: PermissionsTableSeeder
Seeding: RolesTableSeeder
Database seeding completed successfully.

@pierobot
Copy link
Owner

pierobot commented Apr 8, 2020

Did you try with the latest commit?
The checkboxes and permissions were set correctly once I tried ticking and saving them again.

@donotos
Copy link
Author

donotos commented Apr 8, 2020

yeah thanks the latest commit resolved the issue.

@donotos donotos closed this as completed Apr 8, 2020
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

No branches or pull requests

2 participants