]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix constant for deleteothersnotice
authorEvan Prodromou <evan@status.net>
Sun, 8 Nov 2009 03:26:03 +0000 (22:26 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 8 Nov 2009 03:26:03 +0000 (22:26 -0500)
actions/deletenotice.php
lib/noticelist.php

index 4a48a9c346cba2b9714e30184c65273d8ae56632..ba8e86d0f495b7d4227b32ba1f0820b3cb3f471f 100644 (file)
@@ -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;
         }
index 8b3015cc3ebf1a3325c5326ceffa6461c3c5419b..bf12bb73c5dfd4df71e48bee9503a08dc89b6d0a 100644 (file)
@@ -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));