We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit ee9856c4 authored by Evan Prodromou's avatar Evan Prodromou

moderator can delete another user's notice

parent ee236e68
......@@ -66,7 +66,8 @@ class DeletenoticeAction extends Action
if (!common_logged_in()) {
common_user_error(_('Not logged in.'));
} 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.'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment