fix(server): cannot share album to owner (#18802)

* fix(server): create shared album

* add test

* trigger ci

* resolve conversation
This commit is contained in:
Daimolean
2025-06-02 09:58:07 +08:00
committed by GitHub
parent daf1a48b54
commit c89ac5b5e5
3 changed files with 24 additions and 0 deletions

View File

@@ -93,6 +93,10 @@ export class AlbumService extends BaseService {
if (!exists) {
throw new BadRequestException('User not found');
}
if (userId == auth.user.id) {
throw new BadRequestException('Cannot share album with owner');
}
}
const allowedAssetIdsSet = await this.checkAccess({