• net

    (@krstarica)


    Although “edit theme options” capability is not granted for Editor role, they still see “Content Aware” in dashboard menu and “Sidebars – Quick Select” meta box when editing the post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this.

    Are you still experiencing this problem? If so, are you using a plugin to create/manage roles and capabilities?

    The “Content Aware” menu item should only be visible for users with the edit_theme_optionscapability.

    The “Sidebars – Quick Select” metabox will be visible for anyone that can edit posts/pages, ie. it is intentional that they should be able to select an already created sidebar/widget area to be displayed for their content. Only users with edit_theme_optionscapability can create new sidebars from here.

    If you want to hide the metabox for users without a certain capability, you can add a filter like this:

    add_filter('cas/module/quick_select', function($enable, $post_type) {
    return current_user_can('edit_theme_options');
    }, 10, 2);

    Thread Starter net

    (@krstarica)

    Thanks for getting back to me.

    Still experiencing?this issue.

    Editors see “Content Aware” menu item with no subitems inside. It just links to /wp-admin/admin.php?billing_cycle=annual&page=wpcas-pricing

    Tried changing add_menu_page parameter from $post_type_object->cap->edit_poststo 'manage_options', but it’s the same: https://github.com/intoxstudio/content-aware-sidebars/blob/0ad38180a2a3046d007028de0909466b0849fc60/admin/sidebar-overview.php#L45

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.