diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-02 17:39:12 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-02 17:39:12 -0700 |
commit | 406ea67bbc9b67ca4bd80d80eb012bc68afc5262 (patch) | |
tree | c4420c298d29be65319d30b1f5bd7a4e5e6fc24a /Zotlabs/Lib/ThreadItem.php | |
parent | 285781b8870d1c36cf90a3b38a448719b8bf9d21 (diff) | |
download | volse-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/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 4 |
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( |