refactor(server): access checks (#2776)

* refactor(server): access checks

* chore: simply asset module
This commit is contained in:
Jason Rasmussen
2023-06-16 15:01:34 -04:00
committed by GitHub
parent 61d74263d9
commit f04e47803c
11 changed files with 132 additions and 99 deletions

View File

@@ -2,6 +2,8 @@ export const IAccessRepository = 'IAccessRepository';
export interface IAccessRepository {
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
hasAlbumAssetAccess(userId: string, assetId: string): Promise<boolean>;
hasOwnerAssetAccess(userId: string, assetId: string): Promise<boolean>;
hasPartnerAssetAccess(userId: string, assetId: string): Promise<boolean>;
hasSharedLinkAssetAccess(userId: string, assetId: string): Promise<boolean>;
}