diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-15 15:25:53 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-15 15:25:53 +0100 |
commit | 8e1e2e1e2e5b346062e87b7b8401baece8f379a4 (patch) | |
tree | e4b5e475434e0ef48ffd7d6344b651d9c198cb42 /server/sonar-web/src | |
parent | e8080c6be9dc4c6014e035454b683f5d8aace226 (diff) | |
download | sonarqube-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.js | 14 |
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')} |