diff --git a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java index 73199e0d..30820861 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/PatientRecordController.java @@ -354,4 +354,9 @@ public void removeRecord(@PathVariable("key") String key) { LOG.trace("Patient record {} successfully removed.", toRemove); } } + + @GetMapping(value = "/allowedRejectMessage", produces = MediaType.APPLICATION_JSON_VALUE) + public boolean getAllowRejectMessageEnabled(){ + return configReader.getConfig(ConfigParam.RECORDS_ALLOWED_REJECT_MESSAGE).equals("true"); + } }