@@ 141-148 (lines=8) @@ | ||
138 | return false; |
|
139 | } |
|
140 | ||
141 | if ($this->auth->acl_get('f_vote', (int) $this->config['ideas_forum_id'])) |
|
142 | { |
|
143 | $result = $this->ideas->remove_vote($this->data, $this->user->data['user_id']); |
|
144 | } |
|
145 | else |
|
146 | { |
|
147 | $result = $this->language->lang('NO_AUTH_OPERATION'); |
|
148 | } |
|
149 | ||
150 | return $result; |
|
151 | } |
|
@@ 238-245 (lines=8) @@ | ||
235 | return false; |
|
236 | } |
|
237 | ||
238 | if ($this->auth->acl_get('f_vote', (int) $this->config['ideas_forum_id'])) |
|
239 | { |
|
240 | $result = $this->ideas->vote($this->data, $this->user->data['user_id'], $vote); |
|
241 | } |
|
242 | else |
|
243 | { |
|
244 | $result = $this->language->lang('NO_AUTH_OPERATION'); |
|
245 | } |
|
246 | ||
247 | return $result; |
|
248 | } |