]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
moderator can delete another user's notice
authorEvan Prodromou <evan@status.net>
Mon, 28 Sep 2009 01:14:49 +0000 (21:14 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 28 Sep 2009 01:14:49 +0000 (21:14 -0400)
actions/deletenotice.php

index 617fa9c17a44f49dbf243cc3b8d67c6c23b2a23f..4a48a9c346cba2b9714e30184c65273d8ae56632 100644 (file)
@@ -66,7 +66,8 @@ class DeletenoticeAction extends Action
         if (!common_logged_in()) {
             common_user_error(_('Not logged in.'));
             exit;
-        } else if ($this->notice->profile_id != $this->user_profile->id) {
+        } else if ($this->notice->profile_id != $this->user_profile->id &&
+                   !$this->user->hasRight(Right::deleteOthersNotice)) {
             common_user_error(_('Can\'t delete this notice.'));
             exit;
         }