[Fusionforge-commits] FusionForge branch master updated. aae0a097bcb2ef5f29257a245b2ddc0ab7d46ab5

Franck Villaume nerville at fusionforge.org
Sat Dec 27 19:45:03 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  aae0a097bcb2ef5f29257a245b2ddc0ab7d46ab5 (commit)
       via  2b2cfb4267d61a040483dae5076329761c5952cc (commit)
      from  38926b0fbf5f4629fe0f14443b99e182763268e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aae0a097bcb2ef5f29257a245b2ddc0ab7d46ab5
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Dec 27 19:44:15 2014 +0100

    tracker: remove obsolete functions, use forge_check_perm. thx to Vitaliy Pylypiv for reporting

diff --git a/src/common/tracker/Artifact.class.php b/src/common/tracker/Artifact.class.php
index 9f2b091..9715193 100644
--- a/src/common/tracker/Artifact.class.php
+++ b/src/common/tracker/Artifact.class.php
@@ -1213,7 +1213,7 @@ class Artifact extends Error {
 	 * @return	bool	true on success / false on failure
 	 */
 	function assignToMe() {
-		if (!session_loggedin() || !($this->ArtifactType->userIsAdmin() || $this->ArtifactType->userIsTechnician())) {
+		if (!session_loggedin() || !(forge_check_perm('tracker', $this->ArtifactType->getID(), 'manager') || forge_check_perm('tracker', $this->ArtifactType->getID(), 'tech'))) {
 			$this->setPermissionDeniedError();
 			return false;
 		}

commit 2b2cfb4267d61a040483dae5076329761c5952cc
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Dec 27 13:31:35 2014 +0100

    indent

diff --git a/src/www/softwaremap/tag_cloud.php b/src/www/softwaremap/tag_cloud.php
index 6852d32..6c28082 100644
--- a/src/www/softwaremap/tag_cloud.php
+++ b/src/www/softwaremap/tag_cloud.php
@@ -162,7 +162,7 @@ if ($selected_tag) {
 			printf ('<br />'._('Activity Percentile: <strong>%3.0f</strong>'), $percentile);
 			printf ('<br />'._('Activity Ranking: <strong>%d</strong>'), $ranking);
 			printf ('<br />'._('Registered') . _(': '));
-            printf ('<strong>%s</strong>', date(_('Y-m-d H:i'),$row_grp['register_time']));
+			printf ('<strong>%s</strong>', date(_('Y-m-d H:i'),$row_grp['register_time']));
 			print '</td></tr>';
 			/*
 			 if ($row_grp['jobs_count']) {

-----------------------------------------------------------------------

Summary of changes:
 src/common/tracker/Artifact.class.php |    2 +-
 src/www/softwaremap/tag_cloud.php     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list