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  213fe40c7470dea48560bf51a66fce6cbc21a12d (commit)
       via  3c224db8302dc5130edd893adfb7bd23351a9942 (commit)
      from  3df7394630a44f214acf97b41d89809b4fd24aea (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=213fe40c7470dea48560bf51a66fce6cbc21a12d

commit 213fe40c7470dea48560bf51a66fce6cbc21a12d
Author: Franck Villaume <[email protected]>
Date:   Fri Dec 16 19:42:02 2016 +0100

    fix permission: manager can modify summary & description

diff --git a/src/common/widget/Widget_TrackerSummary.class.php 
b/src/common/widget/Widget_TrackerSummary.class.php
index 3e07d55..ee7589e 100644
--- a/src/common/widget/Widget_TrackerSummary.class.php
+++ b/src/common/widget/Widget_TrackerSummary.class.php
@@ -65,18 +65,22 @@ class Widget_TrackerSummary extends Widget {
                $inputAttrs = array('type' => 'text', 'name' => 'summary', 
'style' => 'width:99%', 'value' => $summary);
                if ($func == 'detail') {
                        $inputAttrs['value'] = $ah->getSummary();
-               }
-               if (!forge_check_perm('tracker', $atid, 'submit')) {
-                       $inputAttrs['disabled'] = 'disabled';
+                       if (forge_check_perm('tracker', $atid, 'manager')) {
+                               $inputAttrs['required'] = 'required';
+                               $requiredInfo = utils_requiredField();
+                       } else {
+                               $inputAttrs['disabled'] = 'disabled';
+                               $requiredInfo = '';
+                       }
                        $return .= html_e('input', array('type' => 'hidden', 
'name' => 'summary', 'value' => $ah->getSummary()));
-                       $requiredInfo = '';
+
                } else {
                        $inputAttrs['required'] = 'required';
                        $requiredInfo = utils_requiredField();
                }
                $return .= html_e('p', array(), _('Summary')._(': 
').$requiredInfo.html_e('input', $inputAttrs));
                if ($func == 'detail') {
-                       if (forge_check_perm('tracker', $atid, 'tech')) {
+                       if (forge_check_perm('tracker', $atid, 'manager')) {
                                $editable = true;
                        } else {
                                $editable = false;

https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=3c224db8302dc5130edd893adfb7bd23351a9942

commit 3c224db8302dc5130edd893adfb7bd23351a9942
Author: Franck Villaume <[email protected]>
Date:   Fri Dec 16 19:41:36 2016 +0100

    fix permission on administration menu display

diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php 
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 38a56b6..93000b0 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -80,7 +80,7 @@ class ArtifactTypeHtml extends ArtifactType {
                                $attr[]   = array('title' => _('Add this 
tracker from your monitoring.'));
                        }
 
-                       if (forge_check_perm ('tracker', $this->getID(), 
'manager')) {
+                       if (forge_check_perm('tracker_admin', $group_id)) {
                                $labels[] = _('Administration');
                                $links[]  = 
'/tracker/admin/?group_id='.$group_id.'&atid='.$this->getID();
                                $attr[]   = array('title' => _('Global 
administration for trackers. Create, clone, workflow, fields ...'));

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

Summary of changes:
 src/common/tracker/include/ArtifactTypeHtml.class.php |  2 +-
 src/common/widget/Widget_TrackerSummary.class.php     | 14 +++++++++-----
 2 files changed, 10 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to