amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

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

Open alexsantm opened 6 years ago

alexsantm commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

I'm not sure really. You haven't given me any info to work with, so i recommend that you walk through the code starting from the controller -> action logout

On Feb 16, 2018 8:22 AM, "Alexinho" notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/amnah/yii2-user/issues/204#issuecomment-366233560, or mute the thread https://github.com/notifications/unsubscribe-auth/ACgjZzj2Ri8LfNRkAWD1k1OIBP9I3HABks5tVYEVgaJpZM4SFlLI .