We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 25f1e169 authored by Evan Prodromou's avatar Evan Prodromou

Revert "don't show profile page of silenced users"

This reverts commit 7bb59ad2.
parent 70f9d41c
...@@ -63,15 +63,6 @@ class ShowstreamAction extends ProfileAction ...@@ -63,15 +63,6 @@ class ShowstreamAction extends ProfileAction
$p = Profile::current(); $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)) { if (empty($this->tag)) {
$stream = new ProfileNoticeStream($this->profile, $p); $stream = new ProfileNoticeStream($this->profile, $p);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment