mirror of
https://github.com/immich-app/immich.git
synced 2026-02-12 11:58:15 +03:00
change readonly boolean to role enum
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { AlbumUserRole } from 'src/entities/album-user.entity';
|
||||
|
||||
export const IAccessRepository = 'IAccessRepository';
|
||||
|
||||
export type ReadWrite = 'read' | 'write';
|
||||
@@ -22,7 +24,7 @@ export interface IAccessRepository {
|
||||
|
||||
album: {
|
||||
checkOwnerAccess(userId: string, albumIds: Set<string>): Promise<Set<string>>;
|
||||
checkSharedAlbumAccess(userId: string, albumIds: Set<string>, readWrite: ReadWrite): Promise<Set<string>>;
|
||||
checkSharedAlbumAccess(userId: string, albumIds: Set<string>, access: AlbumUserRole): Promise<Set<string>>;
|
||||
checkSharedLinkAccess(sharedLinkId: string, albumIds: Set<string>): Promise<Set<string>>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user