aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-27 17:12:34 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-27 17:12:34 +0200
commit4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c (patch)
tree5851c08fb528feb0dd1ff80fe3690600e8033ffe /phpBB/viewtopic.php
parent7b3d794cad4c06b1bbb769439a2d051b7ca0a0d4 (diff)
downloadforums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.gz
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.bz2
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.tar.xz
forums-4a8d38aab13099fdb4fb7e2a7b72cff1c05fda9c.zip
[feature/soft-delete] Allow soft deleting/restoring topics via quickmoderation
PHPBB3-9567
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index a53931cc31..04e1697aac 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -532,6 +532,7 @@ $quickmod_array = array(
'lock' => array('LOCK_TOPIC', ($topic_data['topic_status'] == ITEM_UNLOCKED) && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && $user->data['user_id'] == $topic_data['topic_poster'] && $topic_data['topic_status'] == ITEM_UNLOCKED))),
'unlock' => array('UNLOCK_TOPIC', ($topic_data['topic_status'] != ITEM_UNLOCKED) && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && $user->data['user_id'] == $topic_data['topic_poster'] && $topic_data['topic_status'] == ITEM_UNLOCKED))),
'delete_topic' => array('DELETE_TOPIC', $auth->acl_get('m_delete', $forum_id)),
+ 'restore_topic' => array('RESTORE_TOPIC', (($topic_data['topic_visibility'] == ITEM_DELETED) && $auth->acl_get('m_approve', $forum_id))),
'move' => array('MOVE_TOPIC', $auth->acl_get('m_move', $forum_id) && $topic_data['topic_status'] != ITEM_MOVED),
'split' => array('SPLIT_TOPIC', $auth->acl_get('m_split', $forum_id)),
'merge' => array('MERGE_POSTS', $auth->acl_get('m_merge', $forum_id)),