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

HYC-1818 - Fix share with user error #1052

Merged
merged 3 commits into from
Nov 28, 2023
Merged

HYC-1818 - Fix share with user error #1052

merged 3 commits into from
Nov 28, 2023

Conversation

bbpennel
Copy link
Member

@bbpennel bbpennel commented Nov 17, 2023

https://unclibrary.atlassian.net/browse/HYC-1818

  • When setting permissions for users via the Share With feature on the work edit page, it was storing agents in Fedora as http://projecthydra.org/ns/auth/person#[email protected] rather than http://projecthydra.org/ns/auth/person#user. This is the default behavior in fedora, but not what we are doing everywhere else in the code base, so permissions granted this way were having no affect. So this PR converts email usernames into UIDs when updating the permissions on a work, which resolves the issue
  • Removes some additional permission setting overrides from the BaseActor class which do not seem to be needed anymore (I verified that permissions were still getting set via the honors thesis workflow, which appears to have been what the overrides were implemented for).

@bbpennel bbpennel changed the title HYC-1818 - Fix share with user error WIP: HYC-1818 - Fix share with user error Nov 17, 2023
…, then switch it to being the uid since we are storing agents with just the uid rather than the email address
…pdate method to using an alias_method. Update honors thesis test to check outcomes rather than method calls
@bbpennel bbpennel changed the title WIP: HYC-1818 - Fix share with user error HYC-1818 - Fix share with user error Nov 21, 2023
@sharonluong sharonluong merged commit 7bc016f into main Nov 28, 2023
2 checks passed
@bbpennel bbpennel deleted the hyc-1818-share branch December 6, 2023 18:42
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