diff options
author | Callum Macrae <callum@lynxphp.com> | 2012-03-29 21:09:02 +0100 |
---|---|---|
committer | Callum Macrae <callum@lynxphp.com> | 2012-03-29 21:09:02 +0100 |
commit | ddf1a05ad018404f57472068cd533e121343e907 (patch) | |
tree | 6d21f7ddd639a20d16724151cfef8c003f489064 | |
parent | 79a987ffcb19832e1ddefe8be535b181f8acbd73 (diff) | |
download | forums-ddf1a05ad018404f57472068cd533e121343e907.tar forums-ddf1a05ad018404f57472068cd533e121343e907.tar.gz forums-ddf1a05ad018404f57472068cd533e121343e907.tar.bz2 forums-ddf1a05ad018404f57472068cd533e121343e907.tar.xz forums-ddf1a05ad018404f57472068cd533e121343e907.zip |
[ticket/10510] Added docs to viewtopic quick mod tools array.
PHPBB3-10510
-rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index cf97196e31..8a95851b7e 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -518,6 +518,8 @@ gen_forum_auth_level('topic', $forum_id, $topic_data['forum_status']); $allow_change_type = ($auth->acl_get('m_', $forum_id) || ($user->data['is_registered'] && $user->data['user_id'] == $topic_data['topic_poster'])) ? true : false; $quickmod_array = array( +// 'key' => array('LANG_KEY', $userHasPermissions), + '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)), |