mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 17:24:56 +03:00
fix(server): tighten asset visibility (#18699)
* tighten visibility * update sql * elevated access util function * fix potential sync issue * include in user stats * include hidden assets in size usage * filter visibility in search duplicates query * stack visibility
This commit is contained in:
@@ -52,6 +52,7 @@ select
|
||||
where
|
||||
"assets"."deletedAt" is null
|
||||
and "assets"."stackId" = "asset_stack"."id"
|
||||
and "assets"."visibility" in ('archive', 'timeline')
|
||||
) as agg
|
||||
) as "assets"
|
||||
from
|
||||
@@ -135,6 +136,7 @@ select
|
||||
where
|
||||
"assets"."deletedAt" is null
|
||||
and "assets"."stackId" = "asset_stack"."id"
|
||||
and "assets"."visibility" in ('archive', 'timeline')
|
||||
) as agg
|
||||
) as "assets"
|
||||
from
|
||||
|
||||
Reference in New Issue
Block a user