Add permission to repository response.