From 67804f2f77424a2dfe44f948363001b3967f7968 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Wed, 10 May 2017 17:04:23 +0200
Subject: [PATCH] CI Webgui: ad feature in project setup: input for
 replacements (rename role)

---
 config/inc_roles.php                             | 2 +-
 public_html/deployment/classes/project.class.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/inc_roles.php b/config/inc_roles.php
index 4fc52c01..54e159ac 100644
--- a/config/inc_roles.php
+++ b/config/inc_roles.php
@@ -57,7 +57,7 @@ return array(
         "project-action-overview",
         "project-action-phase",
         "project-action-setup",
-        "project-action-edit-replacements",
+        "project-action-setup-edit-replacements",
     ),
     
     // ----- wenn es mal eine feinere Granulierung braucht, muss man eine
diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index fbfe6eda..881672d9 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -3297,7 +3297,7 @@ class project extends base {
                         
                         $aForms["setup"]["form"]['input' . $i++] = array(
                             'type' => 'text',
-                            'disabled' => $this->oUser->hasPermission("project-action-edit-replacements") ? '' : 'disabled',
+                            'disabled' => $this->oUser->hasPermission("project-action-setup-edit-replacements") ? '' : 'disabled',
                             'name' => 'phases[' . $sPhase . '][replace]['.$tTplFile.']['.$sField.']',
                             'label' => $sField,
                             'value' => $aValues && array_key_exists($sField, $aValues) ? $aValues[$sField] : '',
-- 
GitLab