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

Documentation on different modes using Authorizer.can() #203

Closed
abel30567 opened this issue Sep 16, 2021 · 2 comments
Closed

Documentation on different modes using Authorizer.can() #203

abel30567 opened this issue Sep 16, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@abel30567
Copy link

When I use Authorizer.can() in manual mode it returns a Boolean while when using Authorizer.can() in auto mode it returns an Array containing whether or not the user has access.

Also would be great to have a sample response from the API that is needed to use this in auto mode.

@casbin-bot
Copy link
Member

@nodece @Zxilly @Gabriel-403

@casbin-bot casbin-bot added the question Further information is requested label Sep 16, 2021
@Zxilly
Copy link
Contributor

Zxilly commented Sep 16, 2021

old casbin.js is no longer under matainered. You can find an active version at branch v1: https://github.com/casbin/casbin.js/tree/v1

@hsluoyz hsluoyz removed this from Node-Casbin Easy Tasks in Casbin Easy Tasks for Beginners/Student Applicants Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants