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

WIP: OBPIH-4169 Refactor role configuration in RoleFilters to create … #3351

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

jmiranda
Copy link
Member

…explicit delete / remove actions


openboxes.security.rbac.rules = [
[controller: 'auth', actions: ['*'], access: [RoleType.ROLE_ANONYMOUS]],
[controller: 'dashboard', actions: ['getExpirationSummary'], access: [RoleType.ROLE_AUTHENTICATED]],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this one required? Below you have the [controller: 'dashboard', actions: ['*'], access: [RoleType.ROLE_AUTHENTICATED]]

Copy link
Member Author

Choose a reason for hiding this comment

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

None of them are required. We just need rules related to the delete/removes. Or we need an empty rules list that can be overriden via openboxes-config.groovy.

Copy link
Member Author

Choose a reason for hiding this comment

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

@awalkowiak Let's remove everything except for delete, remove, discard, dismantle, etc. And we can add a catchall for each of them like the last two rules.

@awalkowiak
Copy link
Collaborator

@jmiranda I think this one looks good. There is one 'redundant' row in the config. Other than that do you want to add something to it? Or is it ready to be merged atm?

@@ -32,6 +32,11 @@ class ApiController {
def grailsApplication
def messageSource

def rbacRules = {
Copy link
Member Author

Choose a reason for hiding this comment

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

We should get rid of this. This was just for testing.

@awalkowiak awalkowiak merged commit 290014c into develop Jul 20, 2022
@awalkowiak awalkowiak deleted the OBPIH-4169 branch July 20, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants