|
@@ 396-399 (lines=4) @@
|
| 393 |
|
$can_edit = $this->auth->acl_get('m_qte_attr_edit', $forum_id) || $this->auth->acl_get('f_qte_attr_'.$attribute_id, $forum_id) && $this->user->data['is_registered'] && $this->user->data['user_id'] == $author_id; |
| 394 |
|
$can_remove = $this->auth->acl_get('m_qte_attr_del', $forum_id); |
| 395 |
|
|
| 396 |
|
if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE) |
| 397 |
|
{ |
| 398 |
|
return; |
| 399 |
|
} |
| 400 |
|
|
| 401 |
|
// Default values |
| 402 |
|
$fields = array('topic_attr_id' => 0, 'topic_attr_user' => 0, 'topic_attr_time' => 0); |
|
@@ 472-475 (lines=4) @@
|
| 469 |
|
$can_edit = $this->auth->acl_get('m_qte_attr_edit', $forum_id); |
| 470 |
|
$can_remove = $this->auth->acl_get('m_qte_attr_del', $forum_id); |
| 471 |
|
|
| 472 |
|
if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE) |
| 473 |
|
{ |
| 474 |
|
return; |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
if (!sizeof($topic_ids)) |
| 478 |
|
{ |