Skip to content

feat: add method GetImplicitResourcesForUser#798

Merged
hsluoyz merged 1 commit intoapache:masterfrom
kilosonc:updateEnhance
May 26, 2021
Merged

feat: add method GetImplicitResourcesForUser#798
hsluoyz merged 1 commit intoapache:masterfrom
kilosonc:updateEnhance

Conversation

@kilosonc
Copy link
Contributor

Signed-off-by: closetool 4closetool3@gmail.com

Fix: #796

@kilosonc
Copy link
Contributor Author

@hsluoyz
Copy link
Member

hsluoyz commented May 23, 2021

@closetool we don't need new function. We just need to support g2 in GetImplicitPermissionsForUser().

@kilosonc
Copy link
Contributor Author

@hsluoyz Supporting g2 could not satisfy customer's requirement
apache/casbin-jcasbin#174 (comment)
maybe I'll make a pr later to support g2 in GetPermissionsForUser

@hsluoyz
Copy link
Member

hsluoyz commented May 24, 2021

@closetool rename GetImplicitPoliciesForUser() to GetImplicitResourcesForUser(). Also plz add some tests.

@hsluoyz hsluoyz requested review from sagilio and uran0sH May 24, 2021 09:22
@kilosonc
Copy link
Contributor Author

Fixed @hsluoyz

@hsluoyz
Copy link
Member

hsluoyz commented May 25, 2021

@closetool commit and PR name

@kilosonc kilosonc changed the title feat: add method GetImplicitPoliciesForUser feat: add method GetImplicitResourcesForUser May 25, 2021
Signed-off-by: closetool <4closetool3@gmail.com>
@kilosonc kilosonc requested a review from uran0sH May 25, 2021 14:57
@hsluoyz
Copy link
Member

hsluoyz commented May 25, 2021

@lanmarti plz review. Although this is Go code, but if it looks OK, we will port it to Java.

@hsluoyz hsluoyz merged commit fd2dd7f into apache:master May 26, 2021
@hsluoyz
Copy link
Member

hsluoyz commented May 26, 2021

@closetool plz add the new API to docs.

@github-actions
Copy link

🎉 This PR is included in version 2.31.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.

Support also resource grouping (g2) in GetImplicitPermissionsForUser()

4 participants