hunk.code_window: import { AssetSearchOptions, IAssetRepository, WithoutProperty } from '@app/domain';
   import { Injectable } from '@nestjs/common';
   import { InjectRepository } from '@nestjs/typeorm';
   import { FindOptionsRelations, FindOptionsWhere, In, IsNull, Not, Repository } from 'typeorm';
  
hunk.labels: replace keep keep keep
hunk.after_edit: import { AssetSearchOptions, IAssetRepository, LivePhotoSearchOptions, WithoutProperty } from '@app/domain';
  
hunk.file_path: server/libs/infra/src/repositories/asset.repository.ts
hunk.type: replace
file: import { redirect } from '@sveltejs/kit';
  import type { PageServerLoad } from './$types';
  
  export const load: PageServerLoad = async ({ parent }) => {
  	const { user } = await parent();
  
  	if (!user) {
  		throw redirect(302, '/auth/login');
  	} else if (!user.isAdmin) {
  		throw redirect(302, '/photos');
  	}
  
  	return {
  		user,
  		meta: {
  			title: 'System Settings'
  		}
  	};
  };
  