mantisbt/mantisbt — pull request #29 by Dentxinho (2011-12-13 11:31:07+00:00)
Title: Fix #0013538: API auth check on specific functions rework / not needed

Some functions (`access_get_global_level`, `access_get_project_level` and `access_has_bug_level`) on the Access API requires a authenticated user in order to return correct values, FALSE otherwise.
However, these functions can be used by plugins while not authenticated (for the record, I saw this problem when using Source - and a sequence of calls started from checkin.php).
So, I changed the code a bit to allow the execution proceeds and functions do their work if `$p_user_id` is provided (this parameter was there already).