summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-27 21:14:49 -0400
committerEvan Prodromou <evan@status.net>2009-09-27 21:14:49 -0400
commitee9856c452a7e54994c30cd9138dd6faa2107001 (patch)
tree4d0f898f73465390765e49d6c2bfef9725bc3ea2
parentee236e68df8a8b7ee7917fd60ef36b57c0bd64db (diff)
moderator can delete another user's notice
-rw-r--r--actions/deletenotice.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/deletenotice.php b/actions/deletenotice.php
index 617fa9c17..4a48a9c34 100644
--- a/actions/deletenotice.php
+++ b/actions/deletenotice.php
@@ -66,7 +66,8 @@ class DeletenoticeAction extends Action
if (!common_logged_in()) {
common_user_error(_('Not logged in.'));
exit;
- } else if ($this->notice->profile_id != $this->user_profile->id) {
+ } else if ($this->notice->profile_id != $this->user_profile->id &&
+ !$this->user->hasRight(Right::deleteOthersNotice)) {
common_user_error(_('Can\'t delete this notice.'));
exit;
}