diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/OpenEdxSebRestriction.java b/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/OpenEdxSebRestriction.java index 3be44878..ebbacc24 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/OpenEdxSebRestriction.java +++ b/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/OpenEdxSebRestriction.java @@ -50,7 +50,7 @@ public class OpenEdxSebRestriction { } public enum PermissionComponent { - ALWAYS_ALLOW_STUFF("AlwaysAllowStaff"), + ALWAYS_ALLOW_STAFF("AlwaysAllowStaff"), CHECK_BROWSER_EXAM_KEY("CheckSEBHashBrowserExamKey"), CHECK_CONFIG_KEY("CheckSEBHashConfigKey"), CHECK_BROWSER_EXAM_OR_CONFIG_KEY("CheckSEBHashBrowserExamKeyOrConfigKey"); @@ -189,7 +189,7 @@ public class OpenEdxSebRestriction { .collect(Collectors.toList())); } else { final Collection defaultPermissions = new ArrayList<>(); - defaultPermissions.add(PermissionComponent.ALWAYS_ALLOW_STUFF.key); + defaultPermissions.add(PermissionComponent.ALWAYS_ALLOW_STAFF.key); if (!sebRestrictionData.configKeys.isEmpty()) { defaultPermissions.add(PermissionComponent.CHECK_CONFIG_KEY.key); } diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/exam/ExamAdminServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/exam/ExamAdminServiceImpl.java index 353808f9..71fcaae6 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/exam/ExamAdminServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/exam/ExamAdminServiceImpl.java @@ -109,7 +109,7 @@ public class ExamAdminServiceImpl implements ExamAdminService { if (lmsSetup.lmsType == LmsType.OPEN_EDX) { final List permissions = Arrays.asList( - OpenEdxSebRestriction.PermissionComponent.ALWAYS_ALLOW_STUFF.key, + OpenEdxSebRestriction.PermissionComponent.ALWAYS_ALLOW_STAFF.key, OpenEdxSebRestriction.PermissionComponent.CHECK_CONFIG_KEY.key); this.additionalAttributesDAO.saveAdditionalAttribute( diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index e02375f0..0f13707c 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -478,8 +478,8 @@ sebserver.exam.form.sebrestriction.whiteListPaths.PROGRESS.tooltip=The progress sebserver.exam.form.sebrestriction.whiteListPaths.WIKI=Description (Wiki) sebserver.exam.form.sebrestriction.whiteListPaths.WIKI.tooltip=The wikipedia section of the Open edX course -sebserver.exam.form.sebrestriction.permissions.ALWAYS_ALLOW_STUFF=Stuff Role Always Allowed -sebserver.exam.form.sebrestriction.permissions.ALWAYS_ALLOW_STUFF.tooltip=Set this to always allow none-restricted access for a user that has "stuff" privileges. +sebserver.exam.form.sebrestriction.permissions.ALWAYS_ALLOW_STAFF=Staff Role Always Allowed +sebserver.exam.form.sebrestriction.permissions.ALWAYS_ALLOW_STAFF.tooltip=Set this to always allow none-restricted access for a user that has "staff" privileges. sebserver.exam.form.sebrestriction.permissions.CHECK_BROWSER_EXAM_KEY=Check Browser-Exam-Key sebserver.exam.form.sebrestriction.permissions.CHECK_BROWSER_EXAM_KEY.tooltip=Always check received SEB Browser Exam Key with the defined ones for every request. sebserver.exam.form.sebrestriction.permissions.CHECK_CONFIG_KEY=Check Config-Key