diff options
Diffstat (limited to 'src/routes/posts.rs')
-rw-r--r-- | src/routes/posts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 356a7be..7ad0385 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -163,7 +163,7 @@ async fn page_post_inner( } <Content src={&post} /> { - if author_is_me(&post.as_ref().author, &base_data.login) { + if author_is_me(&post.as_ref().author, &base_data.login) || (post.local && base_data.is_site_admin()) { Some(render::rsx! { <p> <a href={format!("/posts/{}/delete", post_id)}>{lang.tr("delete", None)}</a> |