I am trying to: grant full access to the media library for the Editor user role. In Toolset Access version 2.8.14, all rights have been granted to the Editor role, for Media.
I expected Editors to be able to upload and edit images.
Instead, they can upload images, but there is no edit link.
I tried to switch to WordPress access rights, but that did not make a difference. The only work around I found is to deactivate Toolset Access.
I now found that it works fine with Toolset Access activated, but the Enable Media Replace plugin (Shortpixel) deactivated. But wasn't that solved by the recent bug fix I referred to?
Toolset Access must at least play a role here I'd say, because disabling it fixed it. Actually the work around is the same as with the other issue: either disable Toolset Access or the Media Replace plugin. Seems like a compatibility problem.
I'm not able to replicate the issue on my test site.
Can you highlight the exact steps that you've done to see the issue ? All I did was to install both plugins and created a user under the editor role and logged in. Then I was able to upload images and edit them under that user.
Thanks for the test site. I managed to reproduce the issue there. I added a custom taxonomy and fields to media. Also I set Toolset Access to manage Media and changed the permissions. I'm not sure what did it, but this combination is causing Editors not be able to edit media.
The user with the Editor role <edit> <just noticed that this reply is NOT private, I shared the e-mail and password of the editor here>
What do you think?
I did not include a login to my staging because I guess you don't need it anymore.
I just found out that it got worse after upgrading to Shortpixel 5.0.2. The edit link for media is now gone even with Enable Media Replace (3.6.3) disabled. Only disabling Toolset Access is a work around at the moment.
Thanks but this does not work for me. The editor can't login to the site anymore with this function in place. Please see attached.
This function must be added to the theme's functions.php, right? I did so via the Code Snippets plugin (other functions like custom shortcodes work fine).
At first I edited the roles array like this:
$roles = array( 'editor' )
Then I undid that so the script is now exactly as you provided it, but still the editor can't access the site. Whether or not Toolset Access is enabled does not matter. What is causing it not to work?
By the way, once the work around does work: may I assume that a fix is still scheduled so that this function can eventually be removed?