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

There's no add_function() example for PyCasbin #215

Closed
hsluoyz opened this issue Nov 19, 2021 · 2 comments · Fixed by #217
Closed

There's no add_function() example for PyCasbin #215

hsluoyz opened this issue Nov 19, 2021 · 2 comments · Fixed by #217
Assignees
Labels
enhancement New feature or request

Comments

@hsluoyz
Copy link
Member

hsluoyz commented Nov 19, 2021

A user from StackOverflow: https://stackoverflow.com/questions/70016066/custom-function-in-casbin-matcher-in-pycasbin-for-restful-apis said that he doesn't know how to use the AddFunction() API in PyCasbin. In PyCasbin, it is called add_function(): https://github.com/casbin/pycasbin/search?q=add_function . But we still lack an example like Golang:

https://github.com/casbin/casbin/blob/a380d0052d92b28cc36a5940515339e0f1c844fc/model_test.go#L456-L463

We need to port this example to PyCasbin.

@casbin-bot
Copy link
Member

@ffyuanda @Zxilly @techoner @elfisworking

@casbin-bot casbin-bot added the enhancement New feature or request label Nov 19, 2021
@hsluoyz
Copy link
Member Author

hsluoyz commented Nov 19, 2021

@Abingcbc @sallycaoyu can anyone work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants