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

How do I get data from the user? #302

Open
Jim-Lambert-Bose opened this issue Oct 6, 2019 · 1 comment

Comments

@Jim-Lambert-Bose
Copy link

commented Oct 6, 2019

I want to store the user's email in the policy file like:
g, <user-id>, <role>, <email>

Is there any way to access the email address from the casbin API?

@hsluoyz

This comment has been minimized.

Copy link
Member

commented Oct 7, 2019

No. As it's not a part of authorization. So why not query your field with one line of SQL code? Or is there a good reason for Casbin to support it? I'm open to suggestions.

@hsluoyz hsluoyz self-assigned this Oct 7, 2019
@hsluoyz hsluoyz added the enhancement label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.