Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

403, Forbidden. This action is unauthorized. #70

Closed Dontorpedo closed 5 years ago

Dontorpedo commented 5 years ago

Bug report

What I did:

fresh insallation

What I expected to happen:

activating the language

What happened:

403 error, action unauthorized

Backpack, Laravel, PHP, DB version:

latest backpack, laravel, 5.7

welcome[bot] commented 5 years ago

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:

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

higoglhf commented 5 years ago

Hello! Backpack\LangFileManager\app\Http\Requests\LanguageRequest authorize method must be public function authorize() { return backpack_auth()->check(); } instead of public function authorize() { return \Auth::check(); }

Dontorpedo commented 5 years ago

thank you very mutch! it works now