unit of work not needed here

This commit is contained in:
Athou
2015-02-18 12:30:34 +01:00
parent 3386a71c5e
commit 3b7689975d

View File

@@ -32,7 +32,7 @@ public class CustomCssServlet extends HttpServlet {
protected void doGet(final HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/css");
final Optional<User> user = UnitOfWork.run(sessionFactory, () -> new SessionHelper(req).getLoggedInUser());
final Optional<User> user = new SessionHelper(req).getLoggedInUser();
if (!user.isPresent()) {
return;
}