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 403 Forbidden. This action is unauthorized. #71

Closed
elivnjak opened this issue Nov 29, 2018 · 9 comments
Closed

ERROR 403 Forbidden. This action is unauthorized. #71

elivnjak opened this issue Nov 29, 2018 · 9 comments
Labels

Comments

@elivnjak
Copy link

Hi,

I have done a fresh install of the latest version, no modifications done.

The CRUD seems to work for all the models apart from the User, Roles and permissions.

Any time i try to edit or add a new user, role or permission I get taken to a "ERROR 403 Forbidden. This action is unauthorized." page.

I did a bit of searching through the code and have found the authorize method is whats causing it. For example in PermissionCrudRequest the method \Auth::check(); returns false. I'm not sure why this is exactly.

Laravel 5.6.39
Using PHP 7.2.1
MySql 5.7.23

Any idea why I'm getting this issue?

Thanks

@welcome
Copy link

welcome bot commented Nov 29, 2018

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (How do I do X) - Gitter Chatroom;
  • Long questions (I have done X and Y and it won't do Z wtf) - Stackoverflow, using the backpack-for-laravel tag;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

@tabacitu
Copy link
Member

tabacitu commented Dec 6, 2018

Hi @elivnjak ,

Did you solve this with a composer update. What worked for you?

Thanks!

@elivnjak
Copy link
Author

elivnjak commented Dec 8, 2018

Hi @elivnjak

composer update didn't fix it. I had to update my default guard from web to backpack.

@johnpuddephatt
Copy link

I think as with #72 it's an old version of permission manager that's the problem – composer.json has ^2.1 but latest release is 3.12.6. Any reason for not bumping PermissionManager up to 3.x?

@tabacitu tabacitu reopened this Dec 10, 2018
@tabacitu
Copy link
Member

I think you're totally right, thank you @johnpuddephatt . That must be the issue. I've bumped PermissionManager requirement to 3.x .

Thanks, cheers!

@tabacitu
Copy link
Member

@elivnjak - a new installation of the demo should work for you now. Thanks for reporting the issue!

@innocious
Copy link

I am getting this error. Can some body help me out. I am running my db, backend and frontend on docker-compose (docker-containers). When I use laravel's Request class, it works fine. But when I import and Type hint a Form Request class I get a 403, Action is Unauthorized in postman. Help please!

@pxpm
Copy link
Contributor

pxpm commented Dec 15, 2020

@Bliss911 what version of PermissionManager do you have installed ?

@innocious
Copy link

@pxpm my bad. I wasn't working on my PermissionManager Project.

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

No branches or pull requests

5 participants