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

Introduces importer permission restrictions #193

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Conversation

laritakr
Copy link
Contributor

@laritakr laritakr commented Nov 22, 2023

Story

Introduces an Advanced Depositors group with Work Importer role.
Addresses previously failing ability specs.

Refs

Expected Behavior Before Changes

Importers and exporters are open to everyone

Expected Behavior After Changes

Only Admin user and those in the Advanced Depositor group will have access to importers and exporters

Screenshots / Video

Screenshots

default user with no added permissions

Screenshot 2023-11-22 at 1 58 08 PM

when default user tries /importers route

Screenshot 2023-11-22 at 1 58 45 PM

user in Advanced Depositors group

Screenshot 2023-11-22 at 1 59 21 PM

Admin user

Screenshot 2023-11-22 at 2 00 16 PM

New group and role

Screenshot 2023-11-22 at 2 00 33 PM

Notes

  • Requires rake task to load roles and groups: rake hyku:roles:create_default_roles_and_groups
  • Adds new translations to en.yml file only. Requires running a translation service to add other language translations.

Introduces an Advanced Depositors group with Work Importer role.

Requires rake task to load roles:
`rake hyku:roles:create_default_roles_and_groups`

Adds new translations to en.yml file only. Requires running a
translation service to add other language translations.
Fixes previous spec failures.
@laritakr laritakr mentioned this pull request Nov 22, 2023
74 tasks
@laritakr laritakr marked this pull request as draft November 22, 2023 20:36
Address specs failing due to new role & group
@laritakr laritakr marked this pull request as ready for review November 22, 2023 22:48
Copy link
Contributor

@kirkkwang kirkkwang left a comment

Choose a reason for hiding this comment

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

I think this makes sense, though I'm curious if they access the importers can't they also import Collections and FileSets as well? Or is it only works?

@laritakr laritakr merged commit f6109d4 into main Nov 22, 2023
4 of 7 checks passed
@laritakr laritakr deleted the i123-importer-permission branch November 22, 2023 23:57
@laritakr
Copy link
Contributor Author

I think this makes sense, though I'm curious if they access the importers can't they also import Collections and FileSets as well? Or is it only works?

Yes I'd assume that they can import anything since this just gives access to Bulkrax. I just mimicked the "work depositor" role when I made the "advanced depositor" role for Bulkrax for consistent terminology.

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.

2 participants