summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java
index 36bbea46..e45fe2c8 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java
@@ -347,6 +347,7 @@ public class ServerHandler implements SatelliteServer.Iface {
DbImage.setShareMode(imageBaseId, newData);
return;
}
+ // (Unreachable)
} else {
// Likewise, if share mode is local or publish, don't allow changing to FROZEN/DOWNLOAD
if (newData.shareMode != ShareMode.LOCAL && newData.shareMode != ShareMode.PUBLISH) {
@@ -556,6 +557,8 @@ public class ServerHandler implements SatelliteServer.Iface {
}
DbUser.writeUserOnReplication(imagePublishData.owner);
DbImage.writeBaseImage(imagePublishData);
+ DbImagePermissions.writeForImageBase(imagePublishData.imageBaseId, user.userId,
+ new ImagePermissions(true, true, true, true));
} catch (SQLException e) {
throw new TInvocationException(InvocationError.INTERNAL_SERVER_ERROR,
"Could not write to local DB");