[Fusionforge-commits] r9843 - in trunk/gforge/common: forum tracker

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 09:58:08 CEST 2010


Author: lolando
Date: 2010-05-21 09:58:07 +0200 (Fri, 21 May 2010)
New Revision: 9843

Modified:
   trunk/gforge/common/forum/ForumMessage.class.php
   trunk/gforge/common/tracker/Artifact.class.php
   trunk/gforge/common/tracker/ArtifactBoxOptions.class.php
   trunk/gforge/common/tracker/ArtifactCanned.class.php
   trunk/gforge/common/tracker/ArtifactExtraField.class.php
   trunk/gforge/common/tracker/ArtifactExtraFieldElement.class.php
   trunk/gforge/common/tracker/ArtifactType.class.php
Log:
Syntax fixes

Modified: trunk/gforge/common/forum/ForumMessage.class.php
===================================================================
--- trunk/gforge/common/forum/ForumMessage.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/forum/ForumMessage.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -580,7 +580,7 @@
 			return 0;
 		}
 		
-		if (!forge_check_perm ('forum_admin', $this->Forum->Group->getID()) {
+		if (!forge_check_perm ('forum_admin', $this->Forum->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

Modified: trunk/gforge/common/tracker/Artifact.class.php
===================================================================
--- trunk/gforge/common/tracker/Artifact.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/Artifact.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -497,7 +497,7 @@
 			$this->setMissingParamsError();
 			return false;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

Modified: trunk/gforge/common/tracker/ArtifactBoxOptions.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactBoxOptions.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/ArtifactBoxOptions.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -94,7 +94,7 @@
 			$this->setError(_('an element name is required'));
 			return false;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -187,7 +187,7 @@
 	 *  @return	boolean	success.
 	 */
 	function update($name,$boxid,$id) {
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

Modified: trunk/gforge/common/tracker/ArtifactCanned.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactCanned.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/ArtifactCanned.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -93,7 +93,7 @@
 			$this->setError(_('ArtifactCanned: name and assignee are Required'));
 			return false;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -182,7 +182,7 @@
 	 *  @return	boolean	success.
 	 */
 	function update($title,$body) {
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}   

Modified: trunk/gforge/common/tracker/ArtifactExtraField.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactExtraField.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/ArtifactExtraField.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -114,7 +114,7 @@
 			$this->setError("Type of custom field not selected");
 			return false;			
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -369,7 +369,7 @@
 	 *  @return	boolean	success.
 	 */
 	function update($name,$attribute1,$attribute2,$is_required=0,$alias="") {
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -431,7 +431,7 @@
 			$this->setMissingParamsError();
 			return false;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

Modified: trunk/gforge/common/tracker/ArtifactExtraFieldElement.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactExtraFieldElement.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/ArtifactExtraFieldElement.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -127,7 +127,7 @@
 		} else {
 			$status_id=0;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -243,7 +243,7 @@
 	 *  @return	boolean	success.
 	 */
 	function update($name,$status_id=0) {
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -287,7 +287,7 @@
 	 *  @return	boolean	success.
 	 */
 	function delete() {
-		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->ArtifactExtraField->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

Modified: trunk/gforge/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactType.class.php	2010-05-21 07:57:54 UTC (rev 9842)
+++ trunk/gforge/common/tracker/ArtifactType.class.php	2010-05-21 07:58:07 UTC (rev 9843)
@@ -791,7 +791,7 @@
 			$this->setMissingParamsError();
 			return false;
 		}
-		if (!forge_check_perm ('tracker_admin', $this->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
@@ -958,7 +958,7 @@
 	function update($name,$description,$email_all,$email_address,
 		$due_period, $status_timeout,$use_resolution,$submit_instructions,$browse_instructions) {
 
-		if (!forge_check_perm ('tracker_admin', $this->Group->getID()) {
+		if (!forge_check_perm ('tracker_admin', $this->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}




More information about the Fusionforge-commits mailing list