mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix invalid permission check
This commit is contained in:
@@ -46,7 +46,7 @@ export default function TaggedResourcesPage() {
|
||||
{tag?.name ?? tagName}
|
||||
</h1>
|
||||
{
|
||||
tag && <EditTagButton tag={tag} onEdited={(t) => {
|
||||
(tag && app.canUpload()) && <EditTagButton tag={tag} onEdited={(t) => {
|
||||
setTag(t)
|
||||
}} />
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export default function TaggedResourcesPage() {
|
||||
}
|
||||
</div>
|
||||
{
|
||||
(tag?.description && app.canUpload()) && <article className={"px-4 py-2"}>
|
||||
tag?.description && <article className={"px-4 py-2"}>
|
||||
<Markdown>
|
||||
{tag.description}
|
||||
</Markdown>
|
||||
|
Reference in New Issue
Block a user