mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: session permissions
This commit is contained in:
parent
5270107926
commit
2573936d7f
17 changed files with 143 additions and 43 deletions
|
|
@ -203,6 +203,7 @@ export type Album = Selectable<AlbumTable> & {
|
|||
export type AuthSession = {
|
||||
id: string;
|
||||
hasElevatedPermission: boolean;
|
||||
permissions: Permission[];
|
||||
};
|
||||
|
||||
export type Partner = {
|
||||
|
|
@ -240,6 +241,7 @@ export type Session = {
|
|||
deviceType: string;
|
||||
pinExpiresAt: Date | null;
|
||||
isPendingSyncReset: boolean;
|
||||
permissions: Permission[];
|
||||
};
|
||||
|
||||
export type Exif = Omit<Selectable<AssetExifTable>, 'updatedAt' | 'updateId'>;
|
||||
|
|
@ -308,7 +310,7 @@ export const columns = {
|
|||
assetFiles: ['asset_file.id', 'asset_file.path', 'asset_file.type'],
|
||||
authUser: ['user.id', 'user.name', 'user.email', 'user.isAdmin', 'user.quotaUsageInBytes', 'user.quotaSizeInBytes'],
|
||||
authApiKey: ['api_key.id', 'api_key.permissions'],
|
||||
authSession: ['session.id', 'session.updatedAt', 'session.pinExpiresAt'],
|
||||
authSession: ['session.id', 'session.updatedAt', 'session.pinExpiresAt', 'session.permissions'],
|
||||
authSharedLink: [
|
||||
'shared_link.id',
|
||||
'shared_link.userId',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue