Skip to content

Library role permission inconsistencies for clipboard paste and tag management #2928

@BryanttV

Description

@BryanttV

Description

While testing library role permissions in the MFE, I found two inconsistencies between backend capabilities and UI behavior.

1. A library user cannot paste clipboard content from the UI

Assuming that a user with the Library User role is allowed to reuse library content, it is unclear how this permission should be applied through the UI.

During testing:

  • A Library User can copy content to the clipboard.
  • However, there is no visible way in the UI to paste that content into a library.

The paste option only appears for users with other roles (e.g., Library Admin, Library Author, Library Contributor) through [+ New] → [Paste From Clipboard]

Image

For Library User, this option does not appear.

However, when calling the API directly:

POST {studio_domain}/api/libraries/v2/{lib_key}/paste_clipboard/

The content can be successfully pasted, which suggests that the backend permission is correct and the issue is likely limited to the UI.

Question / Expected behavior

If Library Users are allowed to reuse library content, should the UI display the [+ New] → [Paste From Clipboard] option for them as well, possibly restricting it to only that action?

Image

2. A Library Contributor/Author cannot properly manage tags

A user with the Library Contributor or Library Author role should be able to manage content tags.

However, I observed inconsistent behavior between the API and the UI.

API behavior

When attempting to update tags using:

PUT {studio_domain}/api/content_tagging/v1/object_tags/{object_id}/

For content in a library, the request fails with a permission error. This issue is already addressed by this PR.

UI behavior

From the UI:

  • It is possible to add tags.
  • It is not possible to remove tags, because the remove ("x") control is not displayed.
Image

Expected behavior

Library Contributors and Library Authors should be able to both add and remove tags through the UI and the API.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReport of or fix for something that isn't working as intended

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions