mirror of
https://github.com/immich-app/immich.git
synced 2025-11-30 02:59:56 +09:00
fix(server): partner can view archived assets (#9750)
* fix(server): partner can view archived assets * update sql queries
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
createAlbum,
|
||||
createApiKey,
|
||||
createLibrary,
|
||||
createPartner,
|
||||
createPerson,
|
||||
createSharedLink,
|
||||
createUser,
|
||||
@@ -385,6 +386,8 @@ export const utils = {
|
||||
validateLibrary: (accessToken: string, id: string, dto: ValidateLibraryDto) =>
|
||||
validate({ id, validateLibraryDto: dto }, { headers: asBearerAuth(accessToken) }),
|
||||
|
||||
createPartner: (accessToken: string, id: string) => createPartner({ id }, { headers: asBearerAuth(accessToken) }),
|
||||
|
||||
setAuthCookies: async (context: BrowserContext, accessToken: string) =>
|
||||
await context.addCookies([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user