feat: add VisibilityFilteredAssetRepository decorator for automatic access control on asset queries
This commit is contained in:
@@ -82,6 +82,7 @@ pub async fn timeline(
|
||||
) -> Result<Json<TimelineResponse>, AppError> {
|
||||
let query = GetTimelineQuery {
|
||||
owner_id: claims.user_id,
|
||||
caller_id: None,
|
||||
limit: params.limit.unwrap_or(DEFAULT_PAGE_SIZE).min(MAX_PAGE_SIZE),
|
||||
offset: params.offset.unwrap_or(0),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user