[Fusionforge-commits] r15047 - in branches/Branch_5_1: . src/common/tracker
Roland Mas
lolando at fusionforge.org
Wed Feb 1 11:28:10 CET 2012
Author: lolando
Date: 2012-02-01 11:28:09 +0100 (Wed, 01 Feb 2012)
New Revision: 15047
Modified:
branches/Branch_5_1/
branches/Branch_5_1/src/common/tracker/Artifact.class.php
Log:
Bugfix: check for technician permission on the user assigned, not the user doing the change
Modified: branches/Branch_5_1/src/common/tracker/Artifact.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/Artifact.class.php 2012-02-01 09:49:21 UTC (rev 15046)
+++ branches/Branch_5_1/src/common/tracker/Artifact.class.php 2012-02-01 10:28:09 UTC (rev 15047)
@@ -900,7 +900,7 @@
// Check that assigned_to is a tech for the tracker
if ($assigned_to != 100) {
- if (!forge_check_perm ('tracker', $this->ArtifactType->getID(), 'tech')) {
+ if (!forge_check_perm_for_user ($assigned_to, 'tracker', $this->ArtifactType->getID(), 'tech')) {
$this->setError("Invalid assigned_to (assigned person is not a technician)");
return false;
}
More information about the Fusionforge-commits
mailing list