Skip to content

Commit

Permalink
only set isReadOnly for visible assets
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed May 1, 2024
1 parent aae4459 commit 3e19aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/repositories/asset.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class AssetRepository implements IAssetRepository {
}

async setReadOnlyForLibrary(libraryId: string, isReadOnly: boolean): Promise<void> {
await this.repository.update({ library: { id: libraryId } }, { isReadOnly });
await this.repository.update({ library: { id: libraryId }, isVisible: true }, { isReadOnly });
}

getAll(pagination: PaginationOptions, options: AssetSearchOptions = {}): Paginated<AssetEntity> {
Expand Down

0 comments on commit 3e19aef

Please sign in to comment.