mirror of
https://github.com/immich-app/immich.git
synced 2026-08-02 08:58:46 -07:00
fix: timebuckets locked permissions (#30066)
This commit is contained in:
@@ -60,6 +60,9 @@ export class TimelineService extends BaseService {
|
||||
if (dto.visibility === AssetVisibility.Archive) {
|
||||
await this.requireAccess({ auth, permission: Permission.ArchiveRead, ids: [dto.userId] });
|
||||
}
|
||||
if (dto.visibility === AssetVisibility.Locked && dto.userId !== auth.user.id) {
|
||||
throw new BadRequestException("You may not access another user's locked timeline");
|
||||
}
|
||||
}
|
||||
|
||||
if (dto.tagId) {
|
||||
|
||||
Reference in New Issue
Block a user