]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletenotice.php
Updated default and identica theme to use a single instance of
[quix0rs-gnu-social.git] / 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;
         }