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

AO3-6010 Add role for Legal #4889

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

brianjaustin
Copy link
Member

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-6010

Purpose

Add a role for our Legal folks, along with some permissions for that role

Credit

Brian Austin (they/he)

Copy link
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

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

Two questions regarding mismatches between Jira and what was implemented and a few notes for the tests.

admin_users_controller_spec.rb is missing a few tests:

  • test that update doesn't allow legal to change email or roles
  • test that update_next_of_kin, update_status, confirm_delete_user_creations, destroy_user_creations doesn't allow the unauthorized admin roles to do changes/access the actions
  • activate and troubleshoot aren't testing any roles besides support

app/policies/comment_policy.rb Outdated Show resolved Hide resolved
app/policies/user_policy.rb Show resolved Hide resolved
features/admins/admin_works.feature Show resolved Hide resolved
features/admins/admin_works.feature Outdated Show resolved Hide resolved
features/admins/admin_works.feature Outdated Show resolved Hide resolved
spec/controllers/comments_controller_spec.rb Outdated Show resolved Hide resolved
spec/controllers/comments_controller_spec.rb Outdated Show resolved Hide resolved
spec/controllers/comments_controller_spec.rb Outdated Show resolved Hide resolved
spec/controllers/admin/admin_users_controller_spec.rb Outdated Show resolved Hide resolved
spec/controllers/admin/admin_users_controller_spec.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

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

Thank you!

@Bilka2
Copy link
Contributor

Bilka2 commented Aug 9, 2024

Wait, sorry, I missed my own comment regarding tests in admin_users_controller_spec. I think the "test that update doesn't allow legal to change email or roles" is definitely needed, since no other admin role has this behaviour currently. The other two points aren't as important, since legal isn't treading any new ground there.

Copy link
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

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

Thank you!

@brianjaustin brianjaustin merged commit 07358ee into otwcode:master Aug 14, 2024
29 checks passed
@brianjaustin brianjaustin deleted the AO3-6010-legal-role branch August 14, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants