Fixes https://pagure.io/pagure/issue/2320
Why not return 404 even when the user is authenticated if they're not allowed to view the issue? That's how I'm interpreting @puiterwijk's comment about leaking that there are private issues.
As jcline pointed out, this should always be the error surfaced unless you have access.
rebased
+1 as long as the tests pass
Tests are now passing, thanks for the reviews folks!
Pull-Request has been merged by pingou
Fixes https://pagure.io/pagure/issue/2320