actframework / act-aaa-plugin

Use OSGL aaa library to mange Authentication/Authorization/Accounting for ActFramework Application
Apache License 2.0
6 stars 2 forks source link

UserBase: it shall validate if role/permission exists when granting by names #44

Closed greenlaw110 closed 4 years ago

greenlaw110 commented 4 years ago

Suppose there is no role named user is defined, the following code won't report any error and just silently set user role to the current user instance:

image

This however caused the trouble in the future:

image

the error stack is:

image

greenlaw110 commented 4 years ago

Fixed: image