• I want to create a “link editor” for my site, so I used User Role Editor to create a “link editor” role and assigned the “manage_links” capability to this role. However, this only gives the user the ability to create new links (using the “+ New” link on the top admin bar). It does not give the user access to the “Link Library” or “Links” items on the admin menu.

    Looking at the plugin code, it seems that the role must be given the “manage_options” capability to edit or delete links or change settings. If I give that capability to my link editor, the Link items do appear on the admin menu, but so do a lot of other items from both wordpress core and other plugins that I do not want to give the link editor access to.

    So I changed the code. I changed every current_user_can( 'manage_links' ) to current_user_can( 'manage_links' ) and everything seems to be working well.

    Easy fix?

Viewing 1 replies (of 1 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Is there a reason why you are not just giving contributor or author access to this user? This would give them access to the Link Library menu. The Links menu is no longer relevant to Link Library. This was where legacy links were stored but Link Library no longer uses data stored in the Links section.

Viewing 1 replies (of 1 total)

The topic ‘roles and permissions’ is closed to new replies.