From ea872100965b1e2a448cfe1363af21b489da878e Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Fri, 2 Feb 2024 10:12:43 +0100 Subject: [PATCH] fix(envited.ascs.digital): profile guard Signed-off-by: Roy Scheeren --- .../common/serverActions/profiles/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',