@SecureSocial.SecuredAction(ajaxCall=true)
public class Notifs extends BaseController {
public static Result save() {
User user = getLoggedUser();
JsonNode userJson = request().body().asJson();
user.setNotifOnMyProposal(userJson.get("notifOnMyProposal").asBoolean());
user.setNotifAdminOnAllProposal(userJson.get("notifAdminOnAllProposal").asBoolean());
user.setNotifAdminOnProposalWithComment(userJson.get("notifAdminOnProposalWithComment").asBoolean());
user.save();
return ok();
}