MantisBT: master ef31cc7c

Author Committer Branch Timestamp Parent
dregad dregad master 2013-06-07 05:29 master cf773147
Affected Issues  0016024: When user reports an issue, the unpermitted project can be selected
Changeset

Disable selection of projects in which user can't report issues

When the current project is 'All Projects' and user clicks on 'Report
Issue', login_select_proj_page.php presents them with a list of projects,
which includes those in which the user is not allowed to report issues.
If one of these projects is selected, an 'Access Denied' error occurs.

This commit makes the functionality more user-friendly by disabling
these projects in the list, so users can't select them.

To implement this, a new optional parameter was added to functions
print_project_option_list() and print_subproject_option_list().

Fixes 0016024

Conflicts:
core/print_api.php

mod - core/print_api.php Diff File
mod - login_select_proj_page.php Diff File