X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fnoticelist.php;h=bf12bb73c5dfd4df71e48bee9503a08dc89b6d0a;hb=e150d920a53cbafaf6ff3f6397fa40f8cc0e526e;hp=8b3015cc3ebf1a3325c5326ceffa6461c3c5419b;hpb=86560eeb3db60f39b0e1f3ef011819e5f3172101;p=quix0rs-gnu-social.git diff --git a/lib/noticelist.php b/lib/noticelist.php index 8b3015cc3e..bf12bb73c5 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -513,7 +513,7 @@ class NoticeListItem extends Widget $user = common_current_user(); if (!empty($user) && - ($this->notice->profile_id == $user->id || $user->hasRight(Right::deleteOthersNotice))) { + ($this->notice->profile_id == $user->id || $user->hasRight(Right::DELETEOTHERSNOTICE))) { $deleteurl = common_local_url('deletenotice', array('notice' => $this->notice->id));