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

FacultyAccountPolicy doesn't work #32

Closed
jpuck opened this issue Mar 17, 2017 · 1 comment
Closed

FacultyAccountPolicy doesn't work #32

jpuck opened this issue Mar 17, 2017 · 1 comment
Labels

Comments

@jpuck
Copy link
Member

jpuck commented Mar 17, 2017

this doesn't even seem to be getting hit. admins gain access in the before gate, but dd doesn't even register in show method.

stack trace shows that the name is getting lowercased - might be a hint:

#2 /var/www/esreq.walrus.uark.edu/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Auth\Middleware\Authorize->handle(Object(Illuminate\Http\Request), Object(Closure), 'view', 'facultyaccount')
@jpuck jpuck added the bug label Mar 17, 2017
@jpuck jpuck changed the title FacultyAccountPolicy FacultyAccountPolicy doesn't work Mar 17, 2017
@jpuck
Copy link
Member Author

jpuck commented Mar 20, 2017

authorizeResource does not seem to work for models with compound names, but explicit authorization does:

$this->authorize('view', $facultyAccount);

opened framework issue laravel/framework#18432

@jpuck jpuck closed this as completed Mar 20, 2017
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

1 participant