diff options
author | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-23 20:40:53 -0600 |
---|---|---|
committer | Colin Reeder <vpzomtrrfrt@gmail.com> | 2020-10-23 20:40:53 -0600 |
commit | 8c98e0d745412d488f9ae7d060c7248b55edf29c (patch) | |
tree | c9cb69f452f4ae1cf75e2216807b224c9288dd4e /src/components/mod.rs | |
parent | 2d73518bc8b89b1e5f2cd638a9a3e2fd13785f92 (diff) |
Show delete link for local content for site admins
Diffstat (limited to 'src/components/mod.rs')
-rw-r--r-- | src/components/mod.rs | 2 |
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> }) |