alleyinteractive / alley-scripts

A collection of scripts and utilities for Alley projects.
https://alley-scripts.alley.dev/
6 stars 1 forks source link

Issue-620: PostPicker, usePostById, and usePost Don't Work for Users with Lower Permission Levels #621

Closed anubisthejackle closed 8 months ago

anubisthejackle commented 8 months ago

Fixes Issue

PostPicker, usePostById, and usePost Don't Work for Users with Lower Permission Levels (#620)

Description of the changes proposed in the pull request

Steps To Reproduce the bug fixed with this PR

  1. Create a post as one user.
  2. Log in as another user with Author permissions.
  3. Create a post that uses a PostPicker.
  4. Use the PostPicker to select the post created by the other user.
  5. Notice that the initial search works properly, but an error message is presented to the user once selected.

Checklist

Additional Information

I was able to determine that the only thing removed from the API results are raw fields and links to post actions. It is unlikely that these will negatively impact things.

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: f9563d41bb3345bf205f3c459c780d17fa25fa7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------------------ | ----- | | @alleyinteractive/block-editor-tools | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR