- public boolean isPermitted(User u) {
- try {
- return u != null && u.canAssure();
- } catch (SQLException e) {
- e.printStackTrace();
- return false;
- }
- }
-
- private void outputForm(HttpServletRequest req, PrintWriter out, AssuranceForm form) {
- User myself = LoginPage.getUser(req);
- try {
- Notary.checkAssuranceIsPossible(myself, form.getAssuree());
- } catch (GigiApiException e) {
- e.format(out, Page.getLanguage(req));
- }
-
- form.output(out, getLanguage(req), new HashMap<String, Object>());