summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
index 44ae307f..8e033f2f 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ImageUploadPage.java
@@ -337,15 +337,18 @@ public class ImageUploadPage extends ImageUploadPageLayout {
}
// Check imposed size limit by server
- long maxSize = Session.getSatelliteConfig().vmSizeLimit;
- if (maxSize > 0 && maxSize < vmDiskFileInfo.length()) {
- Gui.showMessageBox(
- I18n.PAGE.getString("ImageUpload.Message.warning.diskImageTooBig",
- FormatHelper.bytes(maxSize, false), FormatHelper.bytes(vmDiskFileInfo.length(), false)),
- MessageType.WARNING, null, null);
- setErrorMessage(I18n.PAGE.getString("ImageUpload.WizardPage.errorMessage.diskImageTooBig"));
- setPageComplete(false);
- return;
+ if (!Session.isSuperUser()) {
+ long maxSize = Session.getSatelliteConfig().vmSizeLimit;
+ if (maxSize > 0 && maxSize < vmDiskFileInfo.length()) {
+ Gui.showMessageBox(
+ I18n.PAGE.getString("ImageUpload.Message.warning.diskImageTooBig",
+ FormatHelper.bytes(maxSize, false),
+ FormatHelper.bytes(vmDiskFileInfo.length(), false)),
+ MessageType.WARNING, null, null);
+ setErrorMessage(I18n.PAGE.getString("ImageUpload.WizardPage.errorMessage.diskImageTooBig"));
+ setPageComplete(false);
+ return;
+ }
}
// everything seems fine so far