Skip to content

BXC-5734 set on_campus patron permissions - #155

Merged
bbpennel merged 4 commits into
mainfrom
bxc-5734
Aug 21, 2026
Merged

bbpennel merged 4 commits into
mainfrom
bxc-5734

Conversation

@krwong

@krwong krwong commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

https://unclibrary.atlassian.net/browse/BXC-5734

  • add --on-campus option to assign patron access permissions for the on_campus group
  • add on campus permission to PermissionsInfo, PermissionsService, and PermissionsValidator
  • update tests

"--everyone", "canViewMetadata",
"--authenticated", "canViewMetadata"};
"--authenticated", "canViewMetadata",
"--on-campus", "canViewMetadata"};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think every test is setting all three types of permissions together. We should have at least one test that does not provide an --on-campus flag at all, probably a method dedicated, to ensure that the default works as expected (no on campus). On campus shouldn't be required.

testHelper.populateDescriptions("gilmer_mods1.xml");
testHelper.generateDefaultPermissionsMapping(UserRole.canViewMetadata, UserRole.canViewMetadata);
List<Path> stagingLocs = testHelper.populateSourceFiles("276_182_E.tif", "276_183_E.tif", "276_203_E.tif");
testHelper.generateDefaultPermissionsMapping(UserRole.canViewMetadata, UserRole.canViewMetadata,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should verify that the sip service behaves as expected when the on campus role is not set

@bbpennel
bbpennel merged commit 0407569 into main Aug 21, 2026
2 checks passed
@bbpennel
bbpennel deleted the bxc-5734 branch August 21, 2026 14:48
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