MantisBT: master-1.2.x 179bfc01

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-12-06 03:33 master-1.2.x 1dcb3a95
Affected Issues  0015258: CVE-2013-1811 Reporter can change issue status to 'new'
 0015260: access_get_status_threshold() returns incorrect value for NEW
Changeset

access_get_status_threshold() returns incorrect value for NEW

When the user's access level is below $g_update_bug_status_threshold and
the status to change to is NEW, the function returned the incorrect
access level, preventing user from accessing the target status when
updating bugs, even though the workflow permits it.

This commit fixes the problem by introducing special handling for NEW
status ('bug_submit_status'), in which case the function returns
'report_bug_threshold' otherwise it falls back to default
'update_bug_status_threshold'.

Fixes 0015260, affects issue 0015258

mod - core/access_api.php Diff File