mirror of
https://github.com/immich-app/immich.git
synced 2026-03-26 03:28:59 +03:00
fix(server): cannot share album to owner (#18802)
* fix(server): create shared album * add test * trigger ci * resolve conversation
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user