mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
separate and implement album READ and WRITE permission
This commit is contained in:
parent
156cfb5820
commit
48149e4384
7 changed files with 51 additions and 17 deletions
|
|
@ -1,5 +1,7 @@
|
|||
export const IAccessRepository = 'IAccessRepository';
|
||||
|
||||
export type ReadWrite = 'read' | 'write';
|
||||
|
||||
export interface IAccessRepository {
|
||||
activity: {
|
||||
checkOwnerAccess(userId: string, activityIds: Set<string>): Promise<Set<string>>;
|
||||
|
|
@ -20,7 +22,7 @@ export interface IAccessRepository {
|
|||
|
||||
album: {
|
||||
checkOwnerAccess(userId: string, albumIds: Set<string>): Promise<Set<string>>;
|
||||
checkSharedAlbumAccess(userId: string, albumIds: Set<string>): Promise<Set<string>>;
|
||||
checkSharedAlbumAccess(userId: string, albumIds: Set<string>, readWrite: ReadWrite): Promise<Set<string>>;
|
||||
checkSharedLinkAccess(sharedLinkId: string, albumIds: Set<string>): Promise<Set<string>>;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue