• Resolved mpmchugh

    (@mpmchugh)


    Is there a way to grant permissions to a non-Administrator role for WP Code? Getting…

    “Sorry, you only have read-only access to this page. Ask your administrator for assistance editing.”

    …for any other role, even just a slightly modified Admin Role via the Members plugin.

    This is even when the two available permissions of “wpcode_edit_snippets” and “wpcode_activate_snippets” are granted in the Members Role Editor.

    Please advise. Thanks.

    • This topic was modified 1 year, 8 months ago by mpmchugh.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @mpmchugh,

    Sorry about the confusion here – WPCode also respects the “unfiltered_html” permission from WP core so users also need to have that permission in order to be able to edit code.

    Thread Starter mpmchugh

    (@mpmchugh)

    I don’t see that anywhere as a permission in Members. It seems it might not be accessible in a Multisite install. Is there anyway around this? I’m just trying to let an SEO person edit Headers and Footer scripts some how without making them a full admin.

    At the very least it’d be nice if a user could create/submit scripts but maybe not activate them.

    • This reply was modified 1 year, 8 months ago by mpmchugh.
    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @mpmchugh,

    Unfortunately, on a multisite install, WordPress core overrides the unfiltered_html capability for all users that are not super admins, so not even regular site administrators can have that capability without some code to filter that out, that’s why the capability is not available in the Members plugin.

    If you want to give that permission to a custom role you can do that by adding a snippet in WPCode, here’s an example for the editor role: https://library.wpcode.com/snippet/y26dddok/

    By also granting them just the “wpcode_edit_snippets” capability they can make edits to the global header & footer but they won’t be able to activate or deactivate snippets.

    Please make sure you trust the users that you grant this capability to.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use by a non-administrator role?’ is closed to new replies.