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: fix null value handling logic #337

Merged
merged 2 commits into from
Jan 29, 2024
Merged

Conversation

dacongda
Copy link
Contributor

@dacongda dacongda commented Jan 27, 2024

I change the way to judge if a string is null , but i'm not sure will it cause other bug
this pr may be a temporary solution for issue #335
it will be better to rewire class Policy

Fix: #335

@casbin-bot
Copy link
Member

@sagilio please review

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2024

CLA assistant check
All committers have signed the CLA.

@hsluoyz hsluoyz changed the title fix: change null string judge feat: fix null value handling logic Jan 29, 2024
@hsluoyz hsluoyz merged commit 54db948 into casbin:master Jan 29, 2024
8 checks passed
Copy link

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@dacongda dacongda deleted the fix-null-judge branch February 17, 2024 06:21
sagilio0728 pushed a commit to sagilio0728/Casbin.NET that referenced this pull request Apr 21, 2024
hsluoyz pushed a commit that referenced this pull request Apr 22, 2024
* Revert "fix: fix bugs in policy equal and persist (#347)"

This reverts commit 3306375.

* Revert "feat: fix null value handling logic (#337)"

This reverts commit 54db948.

* feat: compatible with unexpected policy

Signed-off-by: sagilio <sagilio@outlook.com>

---------

Signed-off-by: sagilio <sagilio@outlook.com>
Co-authored-by: sagilio <sagilio@outlook.com>
sagilio0728 added a commit to sagilio0728/Casbin.NET that referenced this pull request Apr 22, 2024
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.

Cannot get Policy with null value in EF core Adapter.
4 participants