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

Getting unknown property: amnah\yii2\user\models\Role::can_? #204

Open
alexsantm opened this issue Feb 14, 2018 · 3 comments
Open

Getting unknown property: amnah\yii2\user\models\Role::can_? #204

alexsantm opened this issue Feb 14, 2018 · 3 comments

Comments

@alexsantm
Copy link

When I want to logout, i recieve this message:
Getting unknown property: amnah\yii2\user\models\Role::can_?

Any idea how to fix it??

@amnah
Copy link
Owner

amnah commented Feb 16, 2018

What's the context? It looks like you're passing in an empty string

https://github.com/amnah/yii2-user/blob/master/models/Role.php#L106-L115

@alexsantm
Copy link
Author

The error appears when I click on Logout of the user, and I can not close the session. Maybe there is a part that I should validate ?? Thanks a lot

@amnah
Copy link
Owner

amnah commented Feb 16, 2018 via email

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