Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

hasPermission inside VerifyPermission is not working properly #207

Open
giwrgos88 opened this issue Jan 20, 2017 · 3 comments
Open

hasPermission inside VerifyPermission is not working properly #207

giwrgos88 opened this issue Jan 20, 2017 · 3 comments

Comments

@giwrgos88
Copy link

giwrgos88 commented Jan 20, 2017

Hello, I saw that the VerifyPermission is not working properly. Basically it's always returning true event if the user doesn't have the permission. Does anyone knows how I can fix it? For example if I do

dd($this->auth->user()->userPermissions)

I see a collection of the permissions that the current authenticated user has. The list doesn't contains the permission that the variable $permission has but stills returns true.

@Ricky-rick
Copy link

We decided to update and maintain a copy of bican roles. This issue is fixed in this copy.
You can find it on packagist: https://packagist.org/packages/ultraware/roles

@giwrgos88
Copy link
Author

@Ricky-rick it's your package that I'm using and is not working. Plus issues are close to your repository

@Ricky-rick
Copy link

Issues are open now. Could you open a issue there and provide a more detailed example?
Example from the readme
$router->post('/example', [ 'as' => 'example', 'middleware' => 'permission:edit.articles', 'uses' => 'ExampleController@index', ]);

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

No branches or pull requests

2 participants