From 1de9496c7fed16c2675c3d5136c131c07534c2cc Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Nov 2009 22:26:03 -0500 Subject: [PATCH] fix constant for deleteothersnotice --- actions/deletenotice.php | 2 +- lib/noticelist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/deletenotice.php b/actions/deletenotice.php index 4a48a9c346..ba8e86d0f4 100644 --- a/actions/deletenotice.php +++ b/actions/deletenotice.php @@ -67,7 +67,7 @@ class DeletenoticeAction extends Action common_user_error(_('Not logged in.')); exit; } else if ($this->notice->profile_id != $this->user_profile->id && - !$this->user->hasRight(Right::deleteOthersNotice)) { + !$this->user->hasRight(Right::DELETEOTHERSNOTICE)) { common_user_error(_('Can\'t delete this notice.')); exit; } 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)); -- 2.39.5