yii2-user icon indicating copy to clipboard operation
yii2-user copied to clipboard

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

Open alexsantm opened this issue 7 years ago • 3 comments

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

Any idea how to fix it??

alexsantm avatar Feb 14 '18 16:02 alexsantm

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

amnah avatar Feb 16 '18 10:02 amnah

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

alexsantm avatar Feb 16 '18 13:02 alexsantm

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" [email protected] 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 .

amnah avatar Feb 16 '18 13:02 amnah