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

feat: use standard JSON format to fix result for ABAC model #203

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

HashCookie
Copy link
Contributor

@HashCookie HashCookie commented Jan 16, 2025

Fix: #201

Reason

The request example of the ABAC model uses JavaScript object literal format (using single quotes or no quotes), which causes the Go backend to be unable to correctly parse the request parameters, resulting in incorrect execution results.

Resolve

  • Change the request format in the ABAC example from a JavaScript object literal to standard JSON format.

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for casbin-editor ready!

Name Link
🔨 Latest commit e9d9744
🔍 Latest deploy log https://app.netlify.com/sites/casbin-editor/deploys/67888ffbcd07cf000840e9d7
😎 Deploy Preview https://deploy-preview-203--casbin-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hsluoyz hsluoyz changed the title fix: use standard JSON format for ABAC request examples feat: use standard JSON format to fix result for ABAC model Jan 16, 2025
@hsluoyz hsluoyz merged commit 640a15d into casbin:master Jan 16, 2025
10 of 11 checks passed
@hsluoyz
Copy link
Member

hsluoyz commented Jan 16, 2025

🎉 This PR is included in version 1.43.0 🎉

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.

[bug] why did editor and casbin-go-cli give different results?
2 participants