]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "don't show profile page of silenced users"
authorEvan Prodromou <evan@status.net>
Sat, 31 Dec 2011 17:34:59 +0000 (09:34 -0800)
committerEvan Prodromou <evan@status.net>
Sat, 31 Dec 2011 17:34:59 +0000 (09:34 -0800)
This reverts commit 7bb59ad2a154c75949d856c84dced71b2fe59a20.

actions/showstream.php

index 4a7d758380a5707fb7c420d401141bf9fddccad0..a3b1794313f4a08ab1856229d0d52dc782dcff67 100644 (file)
@@ -63,15 +63,6 @@ class ShowstreamAction extends ProfileAction
 
         $p = Profile::current();
 
-        // Only the user him/herself, or someone with the power to unsilence,
-        // can view the page of a silenced user.
-
-        if (($this->profile->hasRole(Profile_role::SILENCED)) && 
-            (empty($p) || (($p->id != $this->profile->id) && (!$p->hasRight(Right::SILENCEUSER))))) {
-            throw new ServerException(sprintf(_("User %s has been silenced."), $this->profile->nickname),
-                                      403);
-        }
-
         if (empty($this->tag)) {
             $stream = new ProfileNoticeStream($this->profile, $p);
         } else {