I should add that I’ve created 3 document roles: Staff, Member, and Public. I’m hoping to match these up permissions-wise with three Audiences of the same names.
The document role dropdown appears just below the toolbar checkbox (adminbar in WP 3.2.X).
I’m not seeing the document role dropdown. On the user profile page the Personal Options section (ending with the Admin Bar checkboxes you mentioned) is immediately followed by the Name section (username, etc.).
I’ve tried deactivating all of my other plugins besides the four Document Repository ones, no luck.
I’ve also checked the HTML output of the profile page (on the off-chance there was some kind of CSS conflict preventing the document role dropdown from being visible). The only related code I found is for the left admin sidebar.
It seems like I must be misunderstanding something simple, or am somehow not looking in the right place. Otherwise, is there anything you can think of that would cause the document role dropdown not to appear?
I’ll have to put it on the list to look at. It will probably be at least a week before I will have some time for that.
I may have actually found a solution. On lines 45 and 46 of user-roles.php, just before all the add_action’s and add_filter’s at the end of the init function there is the following code:
if( !current_user_can( 'manage_users' ) )
return;
I changed ‘manage_users’ to ‘edit_users’ and everything started working (in that I now see the document role dropdown on the profile page).
There’s no reason to think I’d be inadvertently breaking some other part of the plugin by changing this, right?
Thanks again for the great plugin and for all your help.
No, that change should be fine. manage_users may be a cap that’s only tested in a network.
Try the development version.
Changing ‘manage_users’ to ‘edit_users’ has settled the issue of role dropdown for user profile. But I’m also having problem on how to assign a “Document Role” to a document. Nothing appears on the page when trying to add a new document or even when I’m trying to modify the info of a document.