Changeset 144c5ec60af3594aa71c6855de4c9adbbfbe0459
- Timestamp:
- 10/30/11 20:51:57 (7 months ago)
- Author:
- Xemle <xemle@phtagr.org>
- Children:
- cfb2be8e188f24d2dfa694be1f11cda467219c1f
- Parents:
- e2d974b1667980e482bba695a2304fef0568eb36
- git-author:
- Xemle <xemle@phtagr.org> / 2011-10-30T20:49:53Z+0100
- git-committer:
- Xemle <xemle@phtagr.org> / 2011-10-30T20:51:57Z+0100
- Message:
-
Fix comment deletion
(cherry picked from commit aceef6b770c0bfb28fc0e578896baf5396c4e0ec)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r0bfc2c5
|
r144c5ec
|
|
| 232 | 232 | // Allow only comment owner, media owner or admins |
| 233 | 233 | if ((isset($comment['User']['id']) && $comment['User']['id'] == $userId) || ($comment['Media']['user_id'] == $userId) || ($this->getUserRole() == ROLE_ADMIN)) { |
| 234 | | if ($this->Comment->del($id)) { |
| | 234 | if ($this->Comment->delete($id)) { |
| 235 | 235 | $this->Session->setFlash(__('Comment deleted', true)); |
| 236 | 236 | Logger::info("Delete comment {$comment['Comment']['id']} of media {$comment['Media']['id']}"); |