MantisBT: next 02d64a13

Author Committer Branch Timestamp Parent
dhx dhx next 2011-09-12 00:24 next 9aa87c33
Changeset

Use update_bug_threshold access check for relationship add/delete

When adding, changing or removing a relationship between two issues,
both issues are modified. Therefore we need to ensure that the current
user has permission to modify both source AND destination issues.

The access threshold could be different for the source and destination
issues if they're both in separate projects. Therefore we need to get
the thresholds for each respective project and compare against each of
these thresholds.

This patch also removes hardcoded use of the default VIEWER access
level. Use of hardcoded default access levels is BAD because it breaks
custom access level configurations.

mod - public/bug_relationship_add.php Diff File
mod - public/bug_relationship_delete.php Diff File
mod - public/bug_update.php Diff File