Right now a user has to have the “edit-posts” capability for a given image id. This should allow contributors+ to change any image that they have the rights to.
Does this work?
Here’s some additional reading:
https://codex.ww.wp.xz.cn/Roles_and_Capabilities#edit_posts
https://codex.ww.wp.xz.cn/Function_Reference/current_user_can
I just found a bug where the interface can still be displayed to a user. However, in looking at the code, the user shouldn’t be able to make any changes. I’ll have to test this and verify for sure.
Track the progress of that bug here.
Also, if you’re savvy enough I could add a hook for an additional ‘pte-edit’ capability.
Giving the users the “edit-posts” capability is a good fix for me.
In the future, I will want to give it to users which should not have the rights to edit the general posts on the website and will only have rights to edit specific custom posts that I have created. It would be nice if in the next few versions of this plugin, you could add an administrative option that provides the ability to define a custom capability for it. If it is not defined, it would default to the “edit-posts” capability.
I appreciate your help and really appreciate all the hard work and thought you have put into creating such a great plugin. It’s a wonderful solution for quickly managing the way images display on my website.
Ok, in the latest (on github) and starting in version 2.2.0; Give other users the ‘pte-edit’ capability for them to have permission to edit any thumbnail. Alternately use the filter ‘pte_capability_check’ (accepts the image ID) to have a more fine grained ability to control the access.
Thank you very much. This works like a charm for me.