moderator can delete another user's notice

This commit is contained in:
Evan Prodromou 2009-09-27 21:14:49 -04:00
parent ee236e68df
commit ee9856c452
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}