summaryrefslogtreecommitdiffstats
path: root/src/components/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mod.rs')
-rw-r--r--src/components/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs
index f045023..f5bc16f 100644
--- a/src/components/mod.rs
+++ b/src/components/mod.rs
@@ -77,7 +77,7 @@ pub fn Comment<'a>(
}
}
{
- if author_is_me(&comment.author, &base_data.login) {
+ if author_is_me(&comment.author, &base_data.login) || (comment.local && base_data.is_site_admin()) {
Some(render::rsx! {
<a href={format!("/comments/{}/delete", comment.as_ref().id)}>{lang.tr("delete", None)}</a>
})