• Nel mio sito ho creato un’area riservata cui accedono solo gli utenti registrati che fanno parte di quel gruppo.
    Nello stesso gruppo ho anche registrato due utenti con il ruolo di Editor in quanto debbono poter gestire tutti gli articoli pubblicati dagli utenti del gruppo.
    Vorrei però che questi Editor potessero gestire SOLO gli articoli del gruppo e non anche gli altri articoli.
    Come fare?

    • This topic was modified 6 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You would need a custom role management plugin.
    You could try something like this:
    https://wordpress.org/plugins/advanced-access-manager/

    You would need to add a custom capability for each group.

    You would then need to restrict access to only editors with that capability.

    You may need to either DYI some custom code for this, or hire a developer.

    All the best 🙂

    Moderator bcworkz

    (@bcworkz)

    You could use the “pre_get_posts” action to conditionally alter post queries so reserved editors only see reserved articles on the post list tables. This will not prevent them from accessing and altering other articles by hacking the editor URL. If you need to strictly enforce the restriction you’d need to use one of the post update actions to kill the process if editors try to alter articles they are not supposed to.

    That approach is a little hacky. It’d be better to have reserved articles be a separate post type. You can then manage access solely through role capabilities and not need to mess with the normal functioning of WP.

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

The topic ‘Editor per area riservata’ is closed to new replies.