summaryrefslogtreecommitdiff
path: root/actions/deletenotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-07 22:26:03 -0500
committerEvan Prodromou <evan@status.net>2009-11-07 22:26:03 -0500
commit1de9496c7fed16c2675c3d5136c131c07534c2cc (patch)
tree236b7a61e9f69b5b93f0ede8d867d037173e3d8f /actions/deletenotice.php
parent38833af6f18ae48caed0cc7939803c89e3104ef9 (diff)
fix constant for deleteothersnotice
Diffstat (limited to 'actions/deletenotice.php')
-rw-r--r--actions/deletenotice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/deletenotice.php b/actions/deletenotice.php
index 4a48a9c34..ba8e86d0f 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;
}