|
@@ 129-132 (lines=4) @@
|
| 126 |
|
$result = $this->db->sql_query($sql); |
| 127 |
|
$value = $this->db->sql_fetchrow($result); |
| 128 |
|
|
| 129 |
|
if (!$this->user->data['is_registered'] || !$this->auth->acl_get('m_delete_comment_dir') && (!$this->auth->acl_get('u_delete_comment_dir') || $this->user->data['user_id'] != $value['comment_user_id'])) { |
| 130 |
|
throw new \phpbb\exception\http_exception(403, 'DIR_ERROR_NOT_AUTH'); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
if (confirm_box(true)) { |
| 134 |
|
$this->comment->del($link_id, $comment_id); |
| 135 |
|
|
|
@@ 167-170 (lines=4) @@
|
| 164 |
|
$result = $this->db->sql_query($sql); |
| 165 |
|
$value = $this->db->sql_fetchrow($result); |
| 166 |
|
|
| 167 |
|
if (!$this->user->data['is_registered'] || !$this->auth->acl_get('m_edit_comment_dir') && (!$this->auth->acl_get('u_edit_comment_dir') || $this->user->data['user_id'] != $value['comment_user_id'])) { |
| 168 |
|
throw new \phpbb\exception\http_exception(403, 'DIR_ERROR_NOT_AUTH'); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$comment_text = generate_text_for_edit($value['comment_text'], $value['comment_uid'], $value['comment_flags']); |
| 172 |
|
$this->s_comment = $comment_text['text']; |
| 173 |
|
|