From 8a60f58ffc9573be3b01a3d55a4e686f46458d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 12 May 2026 12:00:04 +0200 Subject: [PATCH] Allow patch authors to change the state of their patch --- src/components/PatchMetadata.svelte | 3 ++- src/components/PatchStateButton.svelte | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PatchMetadata.svelte b/src/components/PatchMetadata.svelte index 9047bbffc..e31f5737e 100644 --- a/src/components/PatchMetadata.svelte +++ b/src/components/PatchMetadata.svelte @@ -98,9 +98,10 @@ onSelect={newState => { void saveState(newState); }} - disabled={!roles.isDelegate( + disabled={!roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(d => d.did), + patch.author.did, )} /> diff --git a/src/components/PatchStateButton.svelte b/src/components/PatchStateButton.svelte index 3d30c8b06..b8e540842 100644 --- a/src/components/PatchStateButton.svelte +++ b/src/components/PatchStateButton.svelte @@ -36,7 +36,7 @@ title={selectedState.status === "merged" ? "The state of merged patches can not be changed" : disabled - ? "You must be a delegate to change the patch state" + ? "You must be a delegate or the patch author to change the patch state" : undefined}>