MantisBT: master-1.3.x 5d2f72a9

Author Committer Branch Timestamp Parent
cproensa dregad master-1.3.x 2016-08-18 07:07 master-1.3.x df42516b
Affected Issues  0014268: "Report Issue" is missing if the user has access to only private projects, but has not selected a project from the dropdown.
Changeset

Show report bug menu entry if allowed for any project

Previously, the "report bug" menu entry was not displayed when:

  1. current project is ALL PROJECTS and user has not global report bug access
  2. current project is a specific one, and user has not report access in
    that project

(1) is confusing for users, when they have access to report in any of
the specific projects they are assigned to, but still cant find the menu
entry.
Note that for globally allowed users, when trying to report in ALL
PROJECTS, a page appears that promts the user to select a valid project

(2) can be also confusing like (1), when the user is positioned in a
project where is effectively a "viewer", want to report a bug and cant
find the menu entry. This forces the user to select a valid project
before being allowed to use the report menu.

The fix implemented here checks if the user has permissions to report in
any of his assigned projects, then show the menu entry.
If the user cant report in current project once the menu entry is
selected, show the project selection page to choose a valid project.

This fixes (1) which is a common complaint from new users
and (2), which also provides a more intuitive way to use the report
option, as first choose the action, later choose the project.

Fixes: 0014268

mod - bug_report_page.php Diff File
mod - core/html_api.php Diff File