aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-02 17:39:12 -0700
committerzotlabs <mike@macgirvin.com>2018-05-02 17:39:12 -0700
commit406ea67bbc9b67ca4bd80d80eb012bc68afc5262 (patch)
treec4420c298d29be65319d30b1f5bd7a4e5e6fc24a /Zotlabs/Lib
parent285781b8870d1c36cf90a3b38a448719b8bf9d21 (diff)
downloadvolse-hubzilla-406ea67bbc9b67ca4bd80d80eb012bc68afc5262.tar.gz
volse-hubzilla-406ea67bbc9b67ca4bd80d80eb012bc68afc5262.tar.bz2
volse-hubzilla-406ea67bbc9b67ca4bd80d80eb012bc68afc5262.zip
Provide admin delete ability if the viewer is admin but has no existing delete authority. For 3.5+ as a new string is involved.
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 61a012f9d..b7fc8e65d 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -141,6 +141,10 @@ class ThreadItem {
'delete' => t('Delete'),
);
}
+ elseif(is_site_admin()) {
+ $drop = [ 'dropping' => true, 'delete' => t('Admin Delete') ];
+ }
+
// FIXME
if($observer_is_pageowner) {
$multidrop = array(