edit permissions on the values of multiple value fields

Created on 11 March 2016, almost 9 years ago
Updated 30 September 2024, 3 months ago

Hi drupalers,

I have searched the web for this one and it looks like no one has asked this or requested this yet: how to edit permissions on the values of multiple value fields?

In other words, if an image field (for example) has multiple images (values) each uploaded by a different user, how is it possible to limit each user to edit or delete only the image they individually uploaded and not anyone else's?

Neither the field_permissions nor field_permissions_plus don't allow for this extent of functionality. I've also checked field_collection and eck to do something similar, but they don't provide it either.

Looking at the field_collection module I ran into some permission's issues which gave me a hint how a new module might be made for this by adding a hook for defining value's owner similar to this post https://www.drupal.org/node/1284016 β†’ .

Maybe the UUID module might be able to help in giving the field-value an ID to be able to be linked to a user; this way there is a way to distinguish which user edited what field-value in a multiple value field.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

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 mlncn Minneapolis, MN, USA

    Eight years later, we do now have that first step!!

    Field Value Revisions module β†’ associates the delta representing each individual item value in a multivalue field with revision where the value was added or changed. (Even if people change the order of the values in the listing, the delta tracked by Value Revisions is updated.) From the entity revision you can get the user ID and so the role and permissions of the user trying to edit.

    It would be fantastic to have integration between Field Permissions and Field Value Revisions. Related issue over there ✨ Permissions to control who can edit or delete value revisions Active

Production build 0.71.5 2024