MantisBT: master-1.2.x ae8be028

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-01-23 06:01 master-1.2.x 087b1fcd
Affected Issues  0010124: Bug in access_has_bug_level
Changeset

Fix bug in access_has_bug_level() for private issues

When private_bug_threshold is defined as an array instead of a single
access level, e.g. array(0=>40, 1=>70, 2=>90) to prevent developers
from seeing private bugs while granting that privilege to updaters,
access_has_bug_level() incorrectly returned true.

The consequence is that unwanted access to Private bugs was granted to
users who are allowed to view them, e.g. allowing them to delete or
perform other restricted actions.

Fixes 0010124

mod - core/access_api.php Diff File