From 8ab34e0815d27aefbd6c9bed64ddb8050a96fa91 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Fri, 11 Oct 2024 20:41:07 -0700 Subject: [PATCH] Fixed permissions on change. --- src/lib/ChangeView.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ChangeView.svelte b/src/lib/ChangeView.svelte index dc85ff5..05fe1f5 100644 --- a/src/lib/ChangeView.svelte +++ b/src/lib/ChangeView.svelte @@ -43,7 +43,7 @@ const isStatus = (x: string): x is keyof typeof Statuses => x in Statuses; $: isAdmin = $user && $org.hasAdminPerson($user.id); - $: editable = $user && (isAdmin || change.who === $user.id); + $: editable = $user && (isAdmin || change.who === $user.id || change.lead === $user.id); $: unselectedRoles = $org .getRoles() .filter((r) => !change.roles.includes(r.id)) @@ -65,7 +65,7 @@ queryOrError( errors, @@ -125,7 +125,7 @@ ); }} />{:else if change.lead}<PersonLink profile={$org.getProfileWithID(change.lead)} />{:else}No one{/if} - is in currently leading this change project.</Paragraph + is currently leading this change.</Paragraph > <Header>Problem</Header>