Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter julienlusson

    (@julienlusson)

    Hi @adrianrus,

    Thanks for your answer.

    My bad, I was testing with an account without the “edit_other_posts” capability and no media in the library from this user, so it was working as intended and it’s not a bug.

    I don’t want the user to make “Posts” elements but use only “Pages” to create WordPress webpages. But the catch is that WordPress capabilities are quite limited for that: *_posts capabilities are both for “Posts” and “Media”, so we can’t only block post or media with “capabilities”.

    Now, I’ve blocked the access to “post” creation with other means and added the “edit_other_posts” cap to the user and now your plugin work well.

    With another plugin, the media replacement of other media files was working without the
    “edit_other_posts” capability, but now, I see that’s quite a flaw of the other plugin.

    Regards

Viewing 1 replies (of 1 total)