|
|
|
@ -213,10 +213,10 @@ public class Rest extends HttpServlet {
@@ -213,10 +213,10 @@ public class Rest extends HttpServlet {
|
|
|
|
|
return Map.of(SUCCESS,t("Mailing list '{}' was {}!",listEmail,enable ? "enabled" : "disabled")); |
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
LOG.error("Failed to enable/disable mailing list: ",e); |
|
|
|
|
return Map.of("error",t("Failed to update list '{}'",listEmail)); |
|
|
|
|
return Map.of(ERROR,t("Failed to update list '{}'",listEmail)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Map.of("error",t("You are not allowed to edit '{}'",listEmail)); |
|
|
|
|
return Map.of(ERROR,t("You are not allowed to edit '{}'",listEmail)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Map<String, String> hideList(String listEmail, User user, boolean hide) { |
|
|
|
@ -231,7 +231,7 @@ public class Rest extends HttpServlet {
@@ -231,7 +231,7 @@ public class Rest extends HttpServlet {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return Map.of("error",t("You are not allowed to edit '{}'",listEmail)); |
|
|
|
|
return Map.of(ERROR,t("You are not allowed to edit '{}'",listEmail)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Map testList(String listEmail, User user) { |
|
|
|
|