roles and permissions
-
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' )tocurrent_user_can( 'manage_links' )and everything seems to be working well.Easy fix?
The topic ‘roles and permissions’ is closed to new replies.