improve remember me

This commit is contained in:
Sebastian Sdorra
2013-04-24 08:33:32 +02:00
parent a71472d909
commit 2e7e4c457a
11 changed files with 17 additions and 15 deletions

View File

@@ -55,6 +55,7 @@ import java.util.Collection;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response.Status;
import sonia.scm.security.Role;
/**
*
@@ -112,7 +113,7 @@ public class SearchHandler<T>
{
Subject subject = SecurityUtils.getSubject();
if (!subject.isAuthenticated())
if (!subject.hasRole(Role.USER))
{
throw new ScmSecurityException("Authentication is required");
}