Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request weblab#16 from szk11001/master
Only allow admins/editors to group/tag People
  • Loading branch information
jmr06005 committed Mar 2, 2016
2 parents 73263f7 + aacfd6b commit 67d0f27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions uc-people.php
Expand Up @@ -329,4 +329,12 @@ function uc_people_lookup_callback(){
wp_die();
}

function uc_people_hide_taxonomies(){
if( !current_user_can( 'manage_categories' ) ){
remove_meta_box('groupdiv', 'person', 'side');
remove_meta_box('tagsdiv-persontag', 'person', 'side');
}
}
add_action( 'admin_menu', 'uc_people_hide_taxonomies' );

?>

0 comments on commit 67d0f27

Please sign in to comment.