• Resolved Dekadinious

    (@dekadinious)


    The admin page of Textmetrics should only be available to admins. Now even contributors can see it and change critical settings.

    It should also be an option to show or hide Textmetrics for contributors in Gutenberg since we don’t always want everyone to see or use it.

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

    (@israpil)

    Hi,

    In general, users with the contributor role should not have access to the Textmetrics settings page(s). It’s only available to admins. Contributors should only have access to the dashboard/login page. That’s because users have to login separately in order to use the plugin.

    You can make sure this doesn’t happen by overwriting this functionality. Use this code in your (theme’s) functions.php file:

    function update_tm_capability() {
    	return "manage_options";
    }
    add_action('wtt_manage_options_capability', 'update_tm_capability');

    The “manage_options” capability means that only administrators have access to the Textmetrics dashboard / settings page.

    Unfortunately, we don’t have a quick and easy way to show or hide Textmetrics for specific role. This is something we’ll have to develop in order to support it.

    Kind regards,
    Textmetrics

    Thread Starter Dekadinious

    (@dekadinious)

    Sorry for being late to the party here!

    This works, but it still doesn’t hide the meta-box in Gutenberg. I did that using JavaScript, but it’s still available in the source for those who have some skills to remove CSS-rules.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Textmetrics available to contributors’ is closed to new replies.