Allow users to clone content they can edit

Created on 8 January 2021, almost 4 years ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

limit users to clone only content which they have the permission to edit.

Proposed resolution

Like for core translation, add a new single global permission, allowing the user to clone any content (entity) that the user can edit.

Remaining tasks

I need your help for defined all task we need exept my solution

User interface changes

The permission currently looks like:

clone editable entities:
  title: 'Manage clone for any entity that the user can edit'
✨ Feature request
Status

Active

Component

Code

Created by

πŸ‡«πŸ‡·France vanilla-bear

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dereks

    This patch stopped working for me, is anyone else having trouble?

    The function entity_clone_entity_access is successfully returning AccessResult::allowed()->cachePerPermissions()->addCacheableDependency($entity);

    But then
    AccessAwareRouter.checkAccess is showing $access_result->isAllowed() is false and I'm not sure why or how to fix it.

    Any help would be appreciated.

Production build 0.71.5 2024