Support » Plugin: Duplicate Post » How to allow a specific user to duplicate?

  • Resolved Alkorr

    (@alkorr)



    Hi, your plugin works perfectly out of the box, it’s really great, thank you!

    I have a question though: I only allow Editors to duplicate posts but I would like to allow a specific Contributor to duplicate posts as well. Do you know how I can do that?

    Thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Lopo

    (@lopo)

    Hi,
    you could use Members to add a new role (copying the Contributor role), assigning that new role to your user and then allowing the new role to copy in the setting of my plugin…

    Hope this helps!

    Hi Lopo, thanks for your quick reply. I’m using Role Manager not Members, do you know how I could do that?

    • This reply was modified 1 year, 11 months ago by  Alkorr.
    Plugin Author Lopo

    (@lopo)

    Hi,
    I don’t really remember Role Manager (it’s a bit old, isn’t it?), but the recipe should be similar:

    • create a new role copying the Contributor role (Role Manager should allow that – if not, create a new role and give it the same capabilities of Contributor)
    • assign the new role to the user (no need of a plugin here, just edit his/her profile)
    • go to my plugin’s settings, second tab, and allow the new role to copy posts

    Thanks a lot! But I wish I could only create a capability for your plugin without having to create a whole new role… Do you think Members would allow to create a capability for your plugin?

    Plugin Author Lopo

    (@lopo)

    Hi,
    my plugin already defines and uses a new capability “copy_posts” (enabling a role under the settings simply adds the capability to that role), but it seems that Members can’t add a capability to a specific user… you could do that by adding some code (for example) in functions.php: look at the documentation about add_cap

    I suggest to use roles, though, you don’t have to write code and they’re more versatile if you want to grant permission to copy to another user in the future.

    I’ll do that, thank you very much for your help, and for this great plugin 🙂

    Plugin Author Lopo

    (@lopo)

    Thanks for your appreciation!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to allow a specific user to duplicate?’ is closed to new replies.