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);