Currently, the Media module uses the "Administer Files" permission from File Entity to give access to the "Media Browser settings" at admin/config/media/browser where, for instance, you can control what file extensions are permitted.
The Administer Files permission also allows access to admin/content/file which is a really nice file overview for content editors.
I think it would be great to split up the media configuration from administer file, which is what this issue is going to try and accomplish.
The patch below creates a new permission "Administer media browser" which will be used to control access to the media browser settings.
Similar issue in File Entity:
#1774292: admin/content/file shouldn't use the same permission as Media's Media Browser settings configuration?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | media-add_administer_media_permission-1857218-5.patch | 922 bytes | bneil |
| #3 | media-add_administer_media_permission-1857218-3.patch | 956 bytes | bneil |
| #1 | media-add_configure_media_permission-1857218-1.patch | 953 bytes | bneil |
Comments
Comment #1
bneil commentedThe attached patch creates a "Configure media browser" permission that is then used to determine access to admin/config/media/browser instead of "Administer files".
Comment #2
ParisLiakos commentedSure, sounds good:)
But i would prefer "administer media browser" instead of configure
Comment #3
bneil commentedGreat, here's the updated patch.
Comment #4
bneil commentedPer rootatwc's request, I'm removing 'restrict access' => TRUE.
Comment #5
bneil commentedHere's the updated patch.
Comment #6
ParisLiakos commentedthank you
Comment #7
ParisLiakos commentedcommited http://drupalcode.org/project/media.git/commit/fbd2569
Comment #9
zonesny commentedHi. I realize this request is marked as "closed," and that this patch was committed on Dec. 26, 2012. However, the change does not exist in media.module in the latest dev release i.e. 7.x-2.0-unstable7+25-dev from Feb. 9, 2013.
Can you please update me on the status? Of course, I can simply apply the patch, but I'm more concerned why it hasn't been rolled into a release.
Thanks! Fantastic module (btw).
Comment #10
bneil commentedzonesny: I downloaded 7.x-2.0-unstable7+25-dev from the project page and I do see the changes. It's also in HEAD http://drupalcode.org/project/media.git/blob/refs/heads/7.x-2.x:/media.m...
Perhaps you are still referencing an older version?
Comment #10.0
bneil commentedUpdated due to permission name change.