• Hello,

    I just saw that polylang grants a contributor to translate a post created by an admin. This is not the good way this should happen (the contributor shouldn’t be allowed to edit a post created by an admin). No other plugin installed, version : 1.7.6.
    Thanks in advance.

    https://wordpress.org/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    It is intentional that a contributor is allowed to *translate* a post (since he has the right to create a post).

    Of course he doesn’t have the right to *edit* other’s posts so he can’t *edit* a post created by an admin.

    Thread Starter jojaba

    (@jojaba)

    Ok, that makes sens. Is there a way to avoid this behaviour (the post created by admins or editors shouldn’t be avalable for translation for lower capabilities users) ?

    Plugin Author Chouby

    (@chouby)

    Currently, I don’t know if it is possible without hacking directly the plugin. I don’t know if such a call current_user_can($post_type_object->cap->create_posts) fires a filter in which you could hook. And even if it’s the case, you would need some debug_backtrace() call to get the source post_id and make your necessary checks.

    Thread Starter jojaba

    (@jojaba)

    Well, then I will let the contributors translate the posts, as I said before, this is not completely nonsens. 😉
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘user capabilities changed with polylang’ is closed to new replies.