Closed (fixed)
Project:
Media Browser Plus
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2013 at 13:24 UTC
Updated:
10 Jul 2013 at 08:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
boychev commentedAnd now here is my solution. I've changed the access arguments for some of buttons, links and menu callbacks. Also I've created a new permission 'edit media files' and now it is not necessary to use the 'edit any files' permission. I think it's good to have a separate permission. The logic about showing the links for filtering was wrong. We need to show filters only if they are allowed and then to check if the filter is active or not. Here is my patch for fixing these issues.
Comment #2
boychev commentedWaiting for review.
Comment #3
boychev commentedI've handled the case with whitespace errors.
Comment #4
boychev commentedLatest patch.
Comment #5
boychev commentedThe previous patch failed :)
Comment #6
miroslavbanov commentedFurther issues when 'administer files' permission is missing:
1. When editing a file and then we Click "cancel", we are redirected to /admin/content/file/thumbnails, which causes notices thrown in media_form_file_entity_admin_file_alter().
2. When new file is created, we are redirected to the file/%file path, even though we have access permission to "/admin/content/file" path.
Comment #7
ndobromirov commentedAdded a fix in the the submit handler redirect management.
When an array is passed, the strpos on line 436 generates a warning.
Adding a patch for the fix.
Comment #8
ndobromirov commentedThe last patch generates more issues than it solves. Adding a simpler implementation.
Comment #9
devin carlson commentedMarked #2007148: Issue with media_browser_plus and restricted permissions as a duplicate.
Comment #10
das-peter commentedI'm not very happy with the whole permission stuff :| However, this patch surely enhances the current state of the 2.x branch. Even if it isn't backward compatible to older file entity versions.
Thus comitted: http://drupalcode.org/project/media_browser_plus.git/commit/81d80fd
Thanks :)