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

Fixed bug that breaks when trying to share profile #82

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

malexander15
Copy link
Contributor

Pull request checklist

  • My code contains tests covering the code I modified
  • I linted and tested the project with bin/check
  • I added significant changes and product updates to the changelog

By assigning the found Developer instance to a variable (developer_instance) and explicitly returning it at the end of the method, you ensure that the authorize @developer, :share_profile? call in your new action is performed on a Developer instance, which should resolve the issue with finding the appropriate policy class.

@chtzvt chtzvt merged commit c349b9e into main Mar 25, 2024
4 checks passed
@chtzvt chtzvt deleted the share_public_profile_bug branch March 25, 2024 16:14
chtzvt added a commit that referenced this pull request Mar 27, 2024
* Fixed bug that breaks when trying to share profile

* clean up PublicProfilesController#developer

---------

Co-authored-by: Charlton Trezevant <ct@ctis.me>
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