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

feat(license attachment): add permission handling in registerPILTermsAndAttach #89

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

sebsadface
Copy link
Member

Description

This PR updates the registerPILTermsAndAttach function in LicenseAttachmentWorkflows to streamline permission handling. Previously, the caller needed to manually set permission for LicenseAttachmentWorkflows to invoke the attachLicenseTerms function in the LicensingModule. Now, this permission is automatically set within the function, using the provided signature.

Key Changes

  • Added a call to setPermissionForModule, which grants the required permission to call attachLicenseTerms on behalf of the IP.
  • Introduced a new parameter in registerPILTermsAndAttach to pass the signature required for setting the permission.
  • Updated existing tests to reflect these changes.
  • Minor test cleanup.

Test Plan

All existing tests have been updated and are passing locally.

Related Issue

@sebsadface sebsadface marked this pull request as ready for review October 9, 2024 22:04
@sebsadface sebsadface changed the title feat(licensing): add set attach permission feat(license attachment): add permission handling in registerPILTermsAndAttach Oct 9, 2024
@sebsadface sebsadface changed the title feat(license attachment): add permission handling in registerPILTermsAndAttach feat(license attachment): add permission handling in registerPILTermsAndAttach Oct 9, 2024
@sebsadface sebsadface merged commit 400a645 into storyprotocol:main Oct 10, 2024
3 checks passed
@sebsadface sebsadface deleted the fix-licensing branch October 16, 2024 04:25
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.

Enhance registerPILTermsAndAttach in spg
2 participants