Fix authorization for SearchController