diff options
author | Simon Rettberg | 2019-03-19 15:08:13 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-19 15:08:13 +0100 |
commit | 17e6eaef7e489810e260a84a37ba22711956dcff (patch) | |
tree | d5c2cfa47598da226d1dffbf74ccde744f76c7b9 /dozentenmodul | |
parent | [Client] Username -> Benutzername (diff) | |
download | tutor-module-17e6eaef7e489810e260a84a37ba22711956dcff.tar.gz tutor-module-17e6eaef7e489810e260a84a37ba22711956dcff.tar.xz tutor-module-17e6eaef7e489810e260a84a37ba22711956dcff.zip |
[client] Allow editing VMX of VMs from master server
Diffstat (limited to 'dozentenmodul')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java index 396e58a6..211ff1b7 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java @@ -323,8 +323,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe !multiSelection && selectedVersion.isValid && ImagePerms.canLink(image)); mnuDownload.setEnabled(!multiSelection && ImagePerms.canDownload(image)); mnuVmConfig.setEnabled(!multiSelection && selectedVersion.isValid - && ImagePerms.canEdit(image) && (image.shareMode == ShareMode.LOCAL - || image.shareMode == ShareMode.PUBLISH)); + && ImagePerms.canEdit(image)); // Allow VMX edition for downloaded VMs for now mnuDelete.setEnabled(ImagePerms.canEdit(image)); mnuExtendExpiryDate.setEnabled(!multiSelection && (selectedVersion.isValid || Session.hasFeature(Feature.EXTEND_EXPIRED_VM))); |