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

Error page with permissions #13

Open
yagrasdemonde opened this issue Jan 26, 2018 · 1 comment
Open

Error page with permissions #13

yagrasdemonde opened this issue Jan 26, 2018 · 1 comment

Comments

@yagrasdemonde
Copy link

I have an error : if I check edit_posts and uncheck the others permissions for the User role.

When I try to access to http://domain/public/posts/4/edit
I can see the post, but when I want to save my modification, I have the error NotFoundHttpException in Handler.php line 131 : No query results for model [App\Post] 4.

In my application I wish to not permit to show a list of posts for an user, but with a given url I want to permit user to edit a certain post.

Can you help me ?

@diorz38
Copy link
Contributor

diorz38 commented Jul 16, 2018

just edit line 1 : ('edit_users') to ('edit_'.$entity)
and line 6: ('delete_users') to ('delete_'.$entity)

i try to pull request to fix that inconsistent

@diorz38 diorz38 mentioned this issue Jul 16, 2018
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