Permalink
Browse files

Super admins should always be able to edit posts

  • Loading branch information...
danielbachhuber committed Nov 15, 2012
1 parent f903ac8 commit 5e6866954b73fcc4975dfa0f210100d14d4492d9
Showing with 4 additions and 0 deletions.
  1. +4 −0 co-authors-plus.php
View
@@ -790,6 +790,10 @@ function current_user_can_set_authors( ) {
$current_user = wp_get_current_user();
if ( ! $current_user )
return false;
+ // Super admins can do anything
+ if ( function_exists( 'is_super_admin' ) && is_super_admin() )
+ return true;
+
$can_set_authors = isset( $current_user->allcaps['edit_others_posts'] ) ? $current_user->allcaps['edit_others_posts'] : false;
return apply_filters( 'coauthors_plus_edit_authors', $can_set_authors );

0 comments on commit 5e68669

Please sign in to comment.