You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Hi
I am using the role propery in my session as req.session.user.role. But As the doc says by default it search the role either req.decoded or req.session. To mach the custom location we can use decodedObjectName searchPath.
I have tried different combinations but still no luck. If explicitly I make the role accessible via req.session.role. It works. But I want to change it to req.session.user.role.
How to achieve this?
Thanks.
The text was updated successfully, but these errors were encountered:
I just reviewed the module code and realised that Readme.md file is not up to date. The correct property name is roleSearchPath instead of searchPath. If anyone needs to change the path to check for user's role in request object then you can use the it as follows:
acl.config({roleSearchPath : 'session.user.role'// whatever value you will pass here will be prefixed with req.});
Hi
I am using the role propery in my session as req.session.user.role. But As the doc says by default it search the role either req.decoded or req.session. To mach the custom location we can use decodedObjectName searchPath.
I have tried different combinations but still no luck. If explicitly I make the role accessible via req.session.role. It works. But I want to change it to req.session.user.role.
How to achieve this?
Thanks.
The text was updated successfully, but these errors were encountered: