diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-09-26 14:41:01 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-02 17:18:15 +0200 |
commit | 6a3ae4ac87b1e12a9bcd496c57bb6e2918cc345e (patch) | |
tree | 38f63a05fdf9797438a600544a3fdacd789c7615 /server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js | |
parent | 77d3e365acbfd9095efe4458c643a9e8ccdada13 (diff) | |
download | sonarqube-6a3ae4ac87b1e12a9bcd496c57bb6e2918cc345e.tar.gz sonarqube-6a3ae4ac87b1e12a9bcd496c57bb6e2918cc345e.zip |
SONAR-1330 Allow rule changes only for quality profile admins
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js index 916af2e5f03..3ddbfd50961 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js @@ -164,12 +164,13 @@ export default Marionette.ItemView.extend({ return { ...Marionette.ItemView.prototype.serializeData.apply(this, arguments), parent, + actions: this.model.get('actions') || {}, canWrite: this.options.app.canWrite, parameters: this.enhanceParameters(parent), templateKey: this.options.rule.get('templateKey'), isTemplate: this.options.rule.get('isTemplate'), - profilePath: this.getProfilePath(this.model.get('lang'), this.model.get('name')), - parentProfilePath: parent && this.getProfilePath(parent.lang, parent.name) + profilePath: this.getProfilePath(this.model.get('language'), this.model.get('name')), + parentProfilePath: parent && this.getProfilePath(parent.language, parent.name) }; } }); |