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:
21 files changed
+132
-107
No files matched your search
@@ -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