From: Evan Prodromou Date: Mon, 28 Sep 2009 01:14:49 +0000 (-0400) Subject: moderator can delete another user's notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee9856c452a7e54994c30cd9138dd6faa2107001;p=quix0rs-gnu-social.git moderator can delete another user's notice --- diff --git a/actions/deletenotice.php b/actions/deletenotice.php index 617fa9c17a..4a48a9c346 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; }