moderator can delete another user's notice
This commit is contained in:
parent
ee236e68df
commit
ee9856c452
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user