Skip to content

[5.x] Bard entry selector fails with This action is unauthorized #14302

@o1y

Description

@o1y

Bug description

Due to PR #14254, Bard fields throw a "This action is unauthorized" error in the entry link selector for users with restricted collection access.

If at least one collection is not visible to a specific user role, editors may no longer be able to select any entries at all in the Bard link selector, even if other allowed collections should still be available.

As an alternative it is possible to explicitly restrict the collections shown in each Bard field but this is not a practical workaround, because it would require maintaining separate Bard field configurations for different user roles.

Image Image

How to reproduce

  1. Create two collections.
  2. Create a user role that has access to one collection but not the other.
  3. Add a Bard field to a blueprint and use the link selector.
  4. Do not explicitly limit the Bard field to only allowed collections.
  5. Log in as a user with the restricted role.
  6. Open the Bard link selector and try to select an entry.

Logs

Environment

5.73.15

Installation

Fresh statamic/statamic site via CLI

Additional details

Probably this is also an issue in 6.x but I've not tested this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions