aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-17 18:02:46 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-20 15:10:13 +0200
commit8981c0fe32abe0a5fc34f9ed74f41e8280a818ce (patch)
tree0a10313d717592eac04d40f77603e243e0386960 /server/sonar-server
parentbc1570062f5f636fcbf00256e9487dd0e13bdcd2 (diff)
downloadsonarqube-8981c0fe32abe0a5fc34f9ed74f41e8280a818ce.tar.gz
sonarqube-8981c0fe32abe0a5fc34f9ed74f41e8280a818ce.zip
SONAR-8134 improve PermissionTemplateDao
- deprecate the methods that do not support organizations - do not commit session in DAO
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/UpdateTemplateAction.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/UpdateTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/UpdateTemplateAction.java
index e13e202767c..229e043b4b9 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/UpdateTemplateAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/UpdateTemplateAction.java
@@ -104,6 +104,7 @@ public class UpdateTemplateAction implements PermissionsWsAction {
validateTemplate(dbSession, templateToUpdate);
PermissionTemplateDto updatedTemplate = updateTemplate(dbSession, templateToUpdate);
+ dbSession.commit();
return buildResponse(updatedTemplate);
}