mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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:
parent
b5c3a675b2
commit
fa22e865a4
21 changed files with 132 additions and 107 deletions
|
|
@ -304,3 +304,9 @@ const checkOtherAccess = async (access: AccessRepository, request: OtherAccessRe
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const requireElevatedPermission = (auth: AuthDto) => {
|
||||
if (!auth.session?.hasElevatedPermission) {
|
||||
throw new UnauthorizedException('Elevated permission is required');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue