Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
File entity
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2012 at 18:24 UTC
Updated:
25 Sep 2013 at 18:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
mstef commentedHow does this look?
Added a custom access callback for the page, which passes in the array of files.
We iterate the files, and make sure the user can 'update' each.
Comment #2
mstef commentedThis still redirects the user to /admin/content/file after submitting the form, which will result in a 403.
And the link could still possibly link to the same page..
Comment #3
mstef commentedUpdated to fix the 'cancel' link
Comment #4
ParisLiakos commentedthanks
this should be splitted to an if/else statement..it would be easier to read
maybe you should expose the $op as argument here instead of hardcoding it to 'update', so this function becomes even more reusable.
Also maybe rename it to _media_file_entity_access_recursive
Comment #5
devin carlson commentedMarked #2015787: Access Denied errors when importing bulk media as a duplicate.
Comment #6
fallenturtle commentedCould anyone provide advice on looking into how to backport this patch for 1.3?
Looking at the patch I found the places in the media.module to edit, but I cannot find the lines for /includes/media.pages.inc and I can't find the entity file patch from here #1870532: (https://drupal.org/node/1870532) at all.
Comment #7
raulmuroc commentedShould the suggestion in #4 be included in the patch in #3 as a new whole patch?
Comment #8
kumkum29 commentedHello,
Do you include this patch in the next version of media?
in Media 7.x-2.0-alpha2 this patch is not present.
Thanks.
Comment #9
devin carlson commentedMarked #2072079: Permission denied for «Edit Multiple» Files as a duplicate.
Comment #10
aaron commentedchange from #4
Comment #11
raulmuroc commentedFor me #10 gave the expected results. Nice job! :-)
Comment #12
aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/fbdaf45