fix tests

This commit is contained in:
mgabor
2024-04-21 18:42:46 +02:00
parent 9fc61032c3
commit 0f2cc0c8ca
2 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -264,7 +264,13 @@ export class AccessCore {
}
case Permission.ALBUM_REMOVE_ASSET: {
return await this.repository.album.checkOwnerAccess(auth.user.id, ids);
const isOwner = await this.repository.album.checkOwnerAccess(auth.user.id, ids);
const isShared = await this.repository.album.checkSharedAlbumAccess(
auth.user.id,
setDifference(ids, isOwner),
AlbumUserRole.EDITOR,
);
return setUnion(isOwner, isShared);
}
case Permission.ASSET_UPLOAD: {