/** Lists all the contacts of the specifed group */ @Security.Authenticated(Secured.class) public static Result filteredContactsBy(String groupname) { User user = getCurrentUser(); if (!user.isAdmin) return redirect(routes.Application.contacts()); String btn = groupname; return ok(views.html.index.render(Contact.findByGroupname(groupname), contactForm, user, btn)); }