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

Object permissions #158

Merged
merged 6 commits into from
Mar 19, 2021
Merged

Object permissions #158

merged 6 commits into from
Mar 19, 2021

Conversation

nilmerg
Copy link
Member

@nilmerg nilmerg commented Jan 22, 2021

Permissions and restrictions from the very same role are now tied together. That means the permissions of a role won't apply to objects that are available due to another role.

refs Icinga/icingaweb2#2455

@nilmerg nilmerg added the enhancement New feature or improvement label Jan 22, 2021
@nilmerg nilmerg self-assigned this Jan 22, 2021
@nilmerg nilmerg force-pushed the native-object-restriction branch 6 times, most recently from 10ec2e3 to f9aa58f Compare January 28, 2021 16:34
@nilmerg nilmerg changed the title Native object restriction Object permissions Jan 29, 2021
@nilmerg nilmerg force-pushed the native-object-restriction branch from f9aa58f to 45aec8c Compare January 29, 2021 10:17
@nilmerg nilmerg force-pushed the native-object-restriction branch 6 times, most recently from 30e115b to 789b9a0 Compare March 16, 2021 16:41
@nilmerg nilmerg marked this pull request as ready for review March 16, 2021 16:43
@nilmerg nilmerg force-pushed the native-object-restriction branch from 789b9a0 to 99d5380 Compare March 19, 2021 13:26
nilmerg added 6 commits March 19, 2021 15:47
`grantsOnType()` will now perform the permission check it is asked for
on every object that matches the filter. It will then cache all
individual results so that any subsequent call to `grantsOn()` will
hit the cache instead of triggering another query.
The cache is not needed in this case. Populating the cache is a
rather expensive task.
@nilmerg nilmerg force-pushed the native-object-restriction branch from 99d5380 to 2130926 Compare March 19, 2021 14:48
@nilmerg nilmerg merged commit 3d8f4ae into master Mar 19, 2021
@nilmerg nilmerg deleted the native-object-restriction branch March 19, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant