Skip to content

Commit

Permalink
fixed #300
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Jun 3, 2016
1 parent 9d48810 commit 96825f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlexRequests.UI/Modules/SearchModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private bool CanUserSeeThisRequest(int movieId, bool usersCanViewOnlyOwnRequests
if (usersCanViewOnlyOwnRequests)
{
var result = moviesInDb.FirstOrDefault(x => x.Value.ProviderId == movieId);
return result.Value != null && result.Value.UserHasRequested(Username);
return result.Value == null || result.Value.UserHasRequested(Username);
}

return true;
Expand Down

0 comments on commit 96825f0

Please sign in to comment.