summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}