aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-09-26 14:41:01 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-02 17:18:15 +0200
commit6a3ae4ac87b1e12a9bcd496c57bb6e2918cc345e (patch)
tree38f63a05fdf9797438a600544a3fdacd789c7615 /server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profile-view.js
parent77d3e365acbfd9095efe4458c643a9e8ccdada13 (diff)
downloadsonarqube-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.js5
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)
};
}
});