]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletenotice.php
Merge branch '0.9.x' into adminpanel
[quix0rs-gnu-social.git] / actions / deletenotice.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;
         }