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

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

How do I get data from the user? #302

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

Comments

@Jim-Lambert-Bose
Copy link

@Jim-Lambert-Bose Jim-Lambert-Bose 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
Copy link
Contributor

@hsluoyz hsluoyz 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 closed this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants