diff --git a/src/controllers/ProfileAvatarController.ts b/src/controllers/ProfileAvatarController.ts index 85bc4adc..b6db5e1c 100644 --- a/src/controllers/ProfileAvatarController.ts +++ b/src/controllers/ProfileAvatarController.ts @@ -159,6 +159,7 @@ export class ProfileAvatarController extends Controller { "SYS_REGISTRY_OFFICER", _record.profileId, ); + if (_record.isActive) { const profile = await this.profileRepository.findOne({ where: { id: _record.profileId },