diff --git a/apps/envited.ascs.digital/common/serverActions/profiles/update.ts b/apps/envited.ascs.digital/common/serverActions/profiles/update.ts index fce01929..4d0f8a5d 100644 --- a/apps/envited.ascs.digital/common/serverActions/profiles/update.ts +++ b/apps/envited.ascs.digital/common/serverActions/profiles/update.ts @@ -39,7 +39,7 @@ export const _update = userId: session.user.id, }) } - + if (!isOwnProfile(user)(profile)) { throw forbiddenError({ resource: 'profiles',