Skip to content

Commit

Permalink
Don't check user permissions unless there's a user
Browse files Browse the repository at this point in the history
Fixes #4355
  • Loading branch information
bdukes committed Dec 11, 2020
1 parent 27c6974 commit 05a3766
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public void HandleImageRequest(HttpContextBase context, Func<NameValueCollection
// Handle Server cache
if (this.EnableServerCache)
{
if (!this.IsPicVisibleToCurrentUser(userId))
if (userId != -1 && !this.IsPicVisibleToCurrentUser(userId))
{
string message = "Not allowed to see profile picture";

Expand Down

0 comments on commit 05a3766

Please sign in to comment.