Skip to content
Permalink
Browse files

Cocoon管理者権限関係のフック追加

  • Loading branch information...
yhira committed May 30, 2019
1 parent c61df61 commit 302153295e89ebc21e85cf2202082ab04837f851
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/utils.php
@@ -1674,7 +1674,9 @@ function get_current_db_date_before($days){
//ユーザーが管理者か
if ( !function_exists( 'is_user_administrator' ) ):
function is_user_administrator(){
return current_user_can( 'administrator' );
$cocoon_admin_capability = apply_filters('cocoon_admin_capability', 'administrator');
$res = current_user_can( $cocoon_admin_capability );
return apply_filters('is_user_administrator', $res);
}
endif;

0 comments on commit 3021532

Please sign in to comment.
You can’t perform that action at this time.