mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: svelte-kit-2 (#6103)
* chore: upgrade svelte * chore: type imports * chore: types
This commit is contained in:
parent
4ebb9974ff
commit
6e066aa220
108 changed files with 376 additions and 1323 deletions
|
|
@ -24,11 +24,11 @@ export const authenticate = async (options?: AuthOptions) => {
|
|||
const user = savedUser || (await getAuthUser());
|
||||
|
||||
if (!user) {
|
||||
throw redirect(302, AppRoute.AUTH_LOGIN);
|
||||
redirect(302, AppRoute.AUTH_LOGIN);
|
||||
}
|
||||
|
||||
if (options.admin && !user.isAdmin) {
|
||||
throw redirect(302, AppRoute.PHOTOS);
|
||||
redirect(302, AppRoute.PHOTOS);
|
||||
}
|
||||
|
||||
if (!savedUser) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue