protected function check_edit_permission( $comment ) {
		if ( 0 === (int) get_current_user_id() ) {
			return false;
		}

		if ( ! current_user_can( 'moderate_comments' ) ) {
			return false;
		}

		return current_user_can( 'edit_comment', $comment->comment_ID );
	}
protected function check_edit_permission( $comment ) {
		if ( 0 === (int) get_current_user_id() ) {
			return false;
		}

		if ( ! current_user_can( 'moderate_comments' ) ) {
			return false;
		}

		return current_user_can( 'edit_comment', $comment->comment_ID );
	}
protected function check_edit_permission ( $ comment ) { if ( 0 === ( int ) get_current_user_id ( ) ) { return false ; } if ( ! current_user_can ( 'moderate_comments' ) ) { return false ; } return current_user_can ( 'edit_comment' , $ comment -> comment_ID ) ; }
Check if we can edit or delete a comment.

@param  object  $comment Comment object.
@return boolean Can we edit or delete it?
Check if we can edit or delete a comment .