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

fix: UpdateFilteredPolicies returns the oldPolicy containing ptype #1008

Merged
merged 1 commit into from May 12, 2022

Conversation

tangyang9464
Copy link
Member

Signed-off-by: tangyang9464 tangyang9464@163.com

fix: xorm-adapter#49

…containing ptype

Signed-off-by: tangyang9464 <tangyang9464@163.com>
@casbin-bot
Copy link
Member

@closetool @sagilio please review

@hsluoyz
Copy link
Member

hsluoyz commented May 11, 2022

@tangyang9464 can we add a test for this?

@tangyang9464
Copy link
Member Author

@tangyang9464 can we add a test for this?

@hsluoyz This requires the support of third-party adapter, because casbin built-in file-adapter doesn't support UpdateFilteredPolicies. If adding tests, then we need to import additional third-party dependencies such as xorm-adapter in casbin and only use it in test. Is this acceptable?

@tangyang9464
Copy link
Member Author

@hsluoyz In fact, the adapter instead of casbin should be modified for this problem, but because there are many adapters, I choose to modify casbin to be compatible

@hsluoyz
Copy link
Member

hsluoyz commented May 12, 2022

@tangyang9464 ok, let's keep it this way first

@hsluoyz hsluoyz merged commit b1a401c into casbin:master May 12, 2022
@github-actions
Copy link

🎉 This PR is included in version 2.46.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

UpdateFilteredPolicies returns the oldPolicy containing ptype, Is this a bug?
3 participants