Closed (duplicate)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 23:29 UTC
Updated:
28 Mar 2012 at 00:18 UTC
Assuming I don't want my clients editing media - they're going to expect this allows them to edit the image itself, not just change the displayed name, and I don't want them even thinking about that just yet - how about providing a UI option to disable this functionality and remove the "edit" button?
Comments
Comment #1
johnpitcairn commentedI'm embarrassed ... found the permission under File Entity. Apologies for the noise.
Comment #2
johnpitcairn commentedRe-opening.
To disable the media "edit" buttons I need to disallow the file entity "edit file" permission.
This has the unwanted side-effect of also preventing file uploads.
Comment #3
darksnowI'm a bit confused about these permissions too.
In order to allow my users to upload images to the media library I have to give them "Edit Media" permissions. The permission that looks correct, "Import media files from the local filesystem", doesn't seem to have any affect.
I also can't find any permissions at all for "File Entity".
Am I missing something or does something need changed?
Cheers.
Comment #4
dave reidThis is a duplicate of #1227706: Add a file entity access API which will have separate permissions for 'create files', 'edit own files' and 'edit any files'. Right now without that patch it's possible by adding in a process callback to the media element info to disable the edit button. Or you could just hide the button with CSS.
Comment #5
darksnowThanks Dave.
Can you clarify what "Import media files from the local filesystem" does?
Comment #6
johnpitcairn commentedYeah, that's what I'm doing until things become more configurable, I'm not keen to track another modification just for this. Thanks for the info.