aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-11-15 15:25:53 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-11-15 15:25:53 +0100
commit8e1e2e1e2e5b346062e87b7b8401baece8f379a4 (patch)
treee4b5e475434e0ef48ffd7d6344b651d9c198cb42 /server/sonar-web/src
parente8080c6be9dc4c6014e035454b683f5d8aace226 (diff)
downloadsonarqube-8e1e2e1e2e5b346062e87b7b8401baece8f379a4.tar.gz
sonarqube-8e1e2e1e2e5b346062e87b7b8401baece8f379a4.zip
SONAR-8367 The "Apply Template" button should be displayed only to system administrators
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js
index 39fcaa5e925..db60031625d 100644
--- a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js
+++ b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js
@@ -59,13 +59,13 @@ class PageHeader extends React.Component {
<i className="spinner"/>
)}
- <div className="page-actions">
- <button
- className="js-apply-template"
- onClick={this.handleApplyTemplate}>
- Apply Template
- </button>
- </div>
+ {!!window.SS.isUserAdmin && (
+ <div className="page-actions">
+ <button className="js-apply-template" onClick={this.handleApplyTemplate}>
+ Apply Template
+ </button>
+ </div>
+ )}
<div className="page-description">
{translate('roles.page.description2')}