class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 1491-1493 (lines=3) @@ | 
                                                            
                                    | 1488 |  | 				} | 
                                                            
                                    | 1489 |  | 				break; | 
                                                            
                                    | 1490 |  | 			case 'display': | 
                                                            
                                    | 1491 |  | 				if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) { | 
                                                            
                                    | 1492 |  | 					return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 ); | 
                                                            
                                    | 1493 |  | 				} | 
                                                            
                                    | 1494 |  | 				break; | 
                                                            
                                    | 1495 |  | 			default: | 
                                                            
                                    | 1496 |  | 				return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 ); | 
                                                                        
                 
                                                            
                    
class.json-api.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 594-596 (lines=3) @@ | 
                                                            
                                    | 591 |  | 			return new WP_Error( 'unauthorized', 'User cannot access this restricted blog', 403 ); | 
                                                            
                                    | 592 |  | 		} | 
                                                            
                                    | 593 |  |  | 
                                                            
                                    | 594 |  | 		if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) { | 
                                                            
                                    | 595 |  | 			return new WP_Error( 'unauthorized', 'User cannot access this private blog.', 403 ); | 
                                                            
                                    | 596 |  | 		} | 
                                                            
                                    | 597 |  |  | 
                                                            
                                    | 598 |  | 		return $blog_id; | 
                                                            
                                    | 599 |  | 	} | 
                                                                        
                 
                                                            
                    
sal/class.json-api-post-base.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 529-531 (lines=3) @@ | 
                                                            
                                    | 526 |  | 				return new WP_Error( 'unauthorized', 'User cannot edit taxonomy', 403 ); | 
                                                            
                                    | 527 |  | 			break; | 
                                                            
                                    | 528 |  | 		case 'display' : | 
                                                            
                                    | 529 |  | 			if ( -1 == get_option( 'blog_public' ) && ! current_user_can( 'read' ) ) { | 
                                                            
                                    | 530 |  | 				return new WP_Error( 'unauthorized', 'User cannot view taxonomy', 403 ); | 
                                                            
                                    | 531 |  | 			} | 
                                                            
                                    | 532 |  | 			break; | 
                                                            
                                    | 533 |  | 		default : | 
                                                            
                                    | 534 |  | 			return new WP_Error( 'invalid_context', 'Invalid API CONTEXT', 400 ); |