public static void sendModeration(String name, float point) { Task t = new Task(name, point); t.status = TaskStatus.PENDING; t.suggestedBy = SUser.findByEmail(Auth.connected()); t.save(); thanks(); }
@Before public static void initLogin() { if (Security.isConnected()) { SUser u = SUser.findByEmail(Security.connected()); if (null != u) { renderArgs.put("user", u.email); renderArgs.put("user_name", u.name); renderArgs.put("loggedIn", true); } } }