From 8b6ad74475d3cd848e131e11296f793795fdb2d7 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 20 Oct 2022 10:34:18 +0200 Subject: [PATCH] SEBSERV-352 fixed --- .../examconfig/impl/rules/AllowFlashFullscreenRule.java | 4 ++++ .../examconfig/impl/rules/BrowserWindowToolbarRule.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/AllowFlashFullscreenRule.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/AllowFlashFullscreenRule.java index 2df93091..73a7eb91 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/AllowFlashFullscreenRule.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/AllowFlashFullscreenRule.java @@ -37,6 +37,10 @@ public class AllowFlashFullscreenRule implements ValueChangeRule { final ConfigurationAttribute attribute, final ConfigurationValue value) { + if (context.isReadonly()) { + return; + } + if (BooleanUtils.toBoolean(value.value)) { context.enable(KEY_FULL_SCREEN); } else { diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/BrowserWindowToolbarRule.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/BrowserWindowToolbarRule.java index e8b9e90e..288a1b34 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/BrowserWindowToolbarRule.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/examconfig/impl/rules/BrowserWindowToolbarRule.java @@ -40,6 +40,10 @@ public class BrowserWindowToolbarRule implements ValueChangeRule { final ConfigurationAttribute attribute, final ConfigurationValue value) { + if (context.isReadonly()) { + return; + } + if (BooleanUtils.toBoolean(value.value)) { context.enable(KEY_ADDBAR_MAIN); context.enable(KEY_ADDBAR);