-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
GetImplicitPermissionsForUser only takes into account subject grouping #174
Comments
OK, I'll do it in the next few days. |
We should add an optional If the arg is not provided, then default |
Would this be limited to one ptype at a time, or would we be able to specify multiple groupings at once? In my specific case, the latter would be preferred, but I have no clue if this is realistic. |
@lanmarti why you want to specify multiple groupings at once? Does it have special meaning? |
We have a bit of a complex setup, but basically: a subject belongs to one or more teams (g), these teams are given a set of permissions on specific objects, these objects might themselves be supersets of other objects.
Ideally,
In our current use case, we have the subject, but need to know on what objects this subject is allowed to perform a specific action (implicitly). |
@lanmarti currently We can choose to add that support but why don't you consider using the |
The reason we're looking at If
Neither option is very appealing in our current setup. Therefore, my reason for opening this ticket was to see if it was possible to have a third option, i.e. getting permissions the subject has on any object, implicitly, and filtering out objects on which the user has the permission we are interested in. This is probably a niche use case and therefore might not be worth the trouble, but as it stands now, |
@shink plz port the PR: casbin/casbin#798 to Java. |
@hsluoyz OK, I will do it right away. |
issue: casbin#174 Signed-off-by: tsund <[email protected]>
issue: casbin#174 Signed-off-by: tsund <[email protected]>
issue: casbin#174 Signed-off-by: tsund <[email protected]>
🎉 This issue has been resolved in version 1.10.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Could you please let me know on the
With this fix, It will be false with following testing: Then, how we need to do so that we can let alice access the domain1 ? |
@doctormacky is this the same as issue: #232 ? |
Thanks for you quick response, there are not the same issue. actually, the issue caused by the fix 4d91e84 Originally, the Unit test can pass, and the test case can not pass after above fix. and the developer updated the unit test directly... I do not think it's reasonable. please take a look that issue. thanks a lot. |
Would it be feasible to extend this method so it takes into account any grouping, not just the subject grouping?
e.g. with the following model:
getImplicitPermissionsForUser will take into account g, but not g2 or g3.
The text was updated successfully, but these errors were encountered: