Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author sewpafly

    (@sewpafly)

    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.www.ads-software.com/Roles_and_Capabilities#edit_posts
    https://codex.www.ads-software.com/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.

    Plugin Author sewpafly

    (@sewpafly)

    Track the progress of that bug here.

    Also, if you’re savvy enough I could add a hook for an additional ‘pte-edit’ capability.

    Thread Starter DrewSDS

    (@drewsds)

    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.

    Plugin Author sewpafly

    (@sewpafly)

    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.

    Thread Starter DrewSDS

    (@drewsds)

    Thank you very much. This works like a charm for me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘User Rights’ is closed to new replies.