public/wordpress/wp-content/plugins/h5p/public/class-h5p-wordpress.php
/**
   * Check if current user can edit H5P
   *
   * @method currentUserCanEdit
   * @param  int             $contentUserId
   * @return boolean
   */
Check if current user can edit H5P
@method currentUserCanEdit
@param  int             $contentUserId
@return boolean
Check if current user can edit H5P @method currentUserCanEdit @param int $contentUserId @return boolean
private static function currentUserCanEdit ($contentUserId) {
    if (current_user_can('edit_others_h5p_contents')) {
      return TRUE;
    }
    return get_current_user_id() == $contentUserId;
  }
private static function currentUserCanEdit ( $ contentUserId ) { if ( current_user_can ( 'edit_others_h5p_contents' ) ) { return TRUE ; } return get_current_user_id ( ) == $ contentUserId ; }
Check if current user can edit H5P
 @method currentUserCanEdit
 @param  int             $contentUserId
 @return boolean
Check if current user can edit H5P @method currentUserCanEdit @param int $contentUserId @return boolean