projects/plugins/jetpack/class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1147-1149 (lines=3) @@ | 
                                                            
                                    | 1144 |  | 			); | 
                                                            
                                    | 1145 |  | 		} | 
                                                            
                                    | 1146 |  |  | 
                                                            
                                    | 1147 |  | 		if ( strlen( $post->post_password ) && ! current_user_can( 'edit_post', $post->ID ) ) { | 
                                                            
                                    | 1148 |  | 			return new WP_Error( | 
                                                            
                                    | 1149 |  | 				'unauthorized', | 
                                                            
                                    | 1150 |  | 				'User cannot view password protected post', | 
                                                            
                                    | 1151 |  | 				array( | 
                                                            
                                    | 1152 |  | 					'status_code' => 403, | 
                                                                        
                 
                                                            
                    
projects/plugins/jetpack/sal/class.json-api-site-base.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 359-361 (lines=3) @@ | 
                                                            
                                    | 356 |  | 			return new WP_Error( 'unauthorized', 'User cannot view post', array( 'status_code' => 403, 'error' => 'private_blog' ) ); | 
                                                            
                                    | 357 |  | 		} | 
                                                            
                                    | 358 |  |  | 
                                                            
                                    | 359 |  | 		if ( strlen( $post->post_password ) && !current_user_can( 'edit_post', $post->ID ) ) { | 
                                                            
                                    | 360 |  | 			return new WP_Error( 'unauthorized', 'User cannot view password protected post', array( 'status_code' => 403, 'error' => 'password_protected' ) ); | 
                                                            
                                    | 361 |  | 		} | 
                                                            
                                    | 362 |  |  | 
                                                            
                                    | 363 |  | 		return true; | 
                                                            
                                    | 364 |  | 	} |