Fix invalid access denied error caused by access_has_bug_level()

Commit d42e80c01277eec37c7436a23ec72073c9961c49 changed the code in
access_has_bug_level() function, and introduced a bug in the call to
access_compare_level() when access is limited to issue reporter
(inverted parameters caused an incorrect access denied error).

See also 9ec47a056156ac32e1f95cd0ec20d4db8bd54d3b.

Issue #15538