mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
Fix issue title editing and state change permissions
Only delegates and authors should see the edit and state change buttons.
This commit is contained in:
@@ -396,13 +396,15 @@
|
||||
{:else}
|
||||
<div class="title">
|
||||
<InlineTitle content={issue.title} fontSize="medium" />
|
||||
<div class="title-icons">
|
||||
<Icon
|
||||
styleCursor="pointer"
|
||||
name="pen"
|
||||
onclick={() => (editingTitle = !editingTitle)} />
|
||||
<IssueStateButton state={issue.state} save={saveState} />
|
||||
</div>
|
||||
{#if roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(delegate => delegate.did), issue.discussion[0].author.did, )}
|
||||
<div class="title-icons">
|
||||
<Icon
|
||||
styleCursor="pointer"
|
||||
name="pen"
|
||||
onclick={() => (editingTitle = !editingTitle)} />
|
||||
<IssueStateButton state={issue.state} save={saveState} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user