[#6709] Misc performance improvements

- Skip ACE deny check in has_access() if anonymous
- Correct the has_access docstring for recent changes
- Add index for ProjectRole lookups by_name(). Existing project_id index
  was being used, but still had to scan all roles for the project.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
2 files changed