Ready to get started?Download WordPress


Sidebar Login
[resolved] Role limited links revealed to all (9 posts)

  1. DavyB
    Posted 4 years ago #

    The links that are limited to admin, editor, author roles are being revealed to all logged in users since the upgrade to WordPress 3.0


  2. chulk607
    Posted 4 years ago #


  3. aljuk
    Posted 4 years ago #

    They're working fine for me.

  4. Mike
    Posted 3 years ago #

    Newest version will user capabilities instead of levels.

  5. DavyB
    Posted 3 years ago #

    v2.2.13 still does not work properly e.g.

    1. <a title="editor+ role" href="http://saltaire-aa.org/news/wp-admin/edit.php?post_type=page">Pages</a>|publish_pages
      - revealed to all logged in users, should be revealed only to editor and admin
    2. <a title="editor+ role" href="http://saltaire-aa.org/news/wp-admin/edit.php?post_type=page">Pages</a>|true|publish_pages
      - revealed only to admin NOT editor
    3. <a title="editor+ role" href="http://saltaire-aa.org/news/wp-admin/edit.php?post_type=page">Pages</a>|true |publish_pages
      - is this one (3) valid? Note only difference from example 2 is a space
  6. Mike
    Posted 3 years ago #

    Your correct - just submitted a fix. Hopefully this will put an end to the issue. Consolidated both of those rules - so now you just need:

    |true = for admin
    |capability = for any capability

    Let me know if that sorts it for you.

  7. DavyB
    Posted 3 years ago #

    That seems to be working fine now

  8. zuzzurro
    Posted 3 years ago #

    If I understand correctly...


    will show Dashboard link only for admin

    If il write...


    will show Dashboard link only to editor

    If il write...


    will show Dashboard link only to admin and editor

  9. DavyB
    Posted 3 years ago #


    since v2.2.14

    1 - correct
    2 - use capabilities instead use examples below
    3 - is an unnecessary duplication of tautology in v.2.2.13 it was afflicted by a bug and only allowed admin.

    <a href="http://example.com">link</a> | manage_links
    <a href="http://example.com">link</a> | publish_pages

    anyone who has the capability - by default editor has both of these, as does admin

    for author you could use
    <a href="http://example.com">link</a> |publish_posts

    for contributor you could use

    <a href="http://example.com">link</a>|edit_posts

    the only way of hiding a link from an editor would be to give a capabilty to an author and NOT to an editor eg a custom capability based on say, membership of a special interest group. By default the set of capabilities for an author is a subset of the capabilities of an editor without any capabilities in an excluded set, and admin has them all, since even if a capability is not set for admin he/she has manage_roles (which is a custom capability defined by the role manager plugin) and can give themselves a capability

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic