|
@@ 401-404 (lines=4) @@
|
| 398 |
|
$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; |
| 399 |
|
$can_remove = $this->auth->acl_get('m_qte_attr_del', $forum_id); |
| 400 |
|
|
| 401 |
|
if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE) |
| 402 |
|
{ |
| 403 |
|
return; |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
// Default values |
| 407 |
|
$fields = array('topic_attr_id' => 0, 'topic_attr_user' => 0, 'topic_attr_time' => 0); |
|
@@ 476-479 (lines=4) @@
|
| 473 |
|
$can_edit = $this->auth->acl_get('m_qte_attr_edit', $forum_id); |
| 474 |
|
$can_remove = $this->auth->acl_get('m_qte_attr_del', $forum_id); |
| 475 |
|
|
| 476 |
|
if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE) |
| 477 |
|
{ |
| 478 |
|
return; |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
if (!sizeof($topic_ids)) |
| 482 |
|
{ |