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: multi-level inheritance with different domains #931

Merged
merged 1 commit into from Dec 13, 2021
Merged

fix: multi-level inheritance with different domains #931

merged 1 commit into from Dec 13, 2021

Conversation

Abingcbc
Copy link
Member

Fix: #929

How it works?

Refer to: #929 (comment)

Signed-off-by: abingcbc <abingcbc626@gmail.com>
@casbin-bot
Copy link
Member

@tangyang9464 @closetool @sagilio please review

@hsluoyz
Copy link
Member

hsluoyz commented Dec 13, 2021

@amit-chandak-unskript plz review

Copy link

@amit-chandak-unskript amit-chandak-unskript left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Abingcbc for the quick turnaround, just verified my case and it works fine.

$ go run sampleCode/casbin/main.go
[[role:admin * *] [role:editor obj:runbook create] [role:editor obj:runbook update] [role:editor obj:runbook delete] [role:editor obj:credential create] [role:editor obj:credential update] [role:editor obj:credential delete] [role:editor obj:lego create] [role:editor obj:lego update] [role:editor obj:lego delete] [role:requestor obj:runbook request] [role:approver obj:runbook approver] [role:executor obj:runbook execute]]
[[group:editor role:editor domain1] [group:editor role:requestor domain2] [bob group:editor *]]
2021/12/13 07:26:07 Request: bob, domain1, obj:lego, create ---> true
Hit Policy:
true

@amit-chandak-unskript
Copy link

@Abingcbc , one of the checks are failing.
@hsluoyz, the changes look good.

@hsluoyz hsluoyz merged commit f329687 into casbin:master Dec 13, 2021
@github-actions
Copy link

🎉 This PR is included in version 2.40.1 🎉

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.

[Question] User group membership and role assignment to groups
4 participants