Support » Plugin: Newsletter » Permissions

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    If you give that role the “manage categories” permission and allow editors to use newsletter (see the main options) it should work.

    Otherwise you should allow that role the manage_options capability.

    Stefano.

    This is the code I have in my child functions.php

    // Add a custom user role

    $result = add_role( ‘web-owner’, __(

    ‘Web Owner’ ),

    array(

    ‘read’ => true, // true allows this capability
    ‘edit_posts’ => true, // Allows user to edit their own posts
    ‘edit_pages’ => true, // Allows user to edit pages
    ‘edit_events’ => true, // Allows user to edit events
    ‘edit_others_posts’ => true, // Allows user to edit others posts not just their own
    ‘edit_categories’ => true, // Allows user to edit their own newsletters
    ‘create_posts’ => true, // Allows user to create new posts
    ‘create_pages’ => true, // Allows user to create new pages
    ‘create_events’ => true, // Allows user to create new events
    ‘create_categories’ => true, // Allows user to create new categories
    ‘manage_categories’ => true, // Allows user to manage post categories
    ‘publish_posts’ => true, // Allows the user to publish, otherwise posts stays in draft mode
    ‘publish_pages’ => true, // Allows the user to publish, otherwise pages stays in draft mode
    ‘publish_events’ => true, // Allows the user to publish, otherwise events stays in draft mode
    ‘publish_categories’ => true, // Allows the user to publish, otherwise pages stays in draft mode
    ‘edit_themes’ => false, // false denies this capability. User can’t edit your theme
    ‘install_plugins’ => false, // User cant add new plugins
    ‘update_plugin’ => false, // User can’t update any plugins
    ‘update_core’ => false // user cant perform core updates

    )

    );

    The manage categories didn’t allow it so do I now add manage_options to this code?

    Thanks

    Plugin Author Stefano Lissa

    (@satollo)

    since that role has “manage categories”, if you enable the editors to access newsletter (see newsletter main settings), he should be able to use the plugin panels.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permissions’ is closed to new replies.