mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 09:14:58 +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:
@@ -290,7 +290,7 @@ order by
|
||||
select
|
||||
"users"."id" as "userId",
|
||||
"users"."name" as "userName",
|
||||
"users"."quotaSizeInBytes" as "quotaSizeInBytes",
|
||||
"users"."quotaSizeInBytes",
|
||||
count(*) filter (
|
||||
where
|
||||
(
|
||||
@@ -335,9 +335,8 @@ select
|
||||
from
|
||||
"users"
|
||||
left join "assets" on "assets"."ownerId" = "users"."id"
|
||||
and "assets"."deletedAt" is null
|
||||
left join "exif" on "exif"."assetId" = "assets"."id"
|
||||
where
|
||||
"assets"."deletedAt" is null
|
||||
group by
|
||||
"users"."id"
|
||||
order by
|
||||
|
||||
Reference in New Issue
Block a user