Skip to content

Commit

Permalink
Merge pull request #24 from awoods/fcrepo-1714.redux
Browse files Browse the repository at this point in the history
Revert "FCREPO-1714. Moved FedoraUserSecurityContext instantiation to…
  • Loading branch information
whikloj committed Sep 9, 2015
2 parents 362a501 + 276350e commit 27fd8b9
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
import javax.jcr.Session;

import org.fcrepo.auth.common.FedoraAuthorizationDelegate;
import org.fcrepo.auth.common.FedoraUserSecurityContext;
import org.fcrepo.http.commons.session.SessionFactory;
import org.fcrepo.kernel.api.exception.RepositoryRuntimeException;

import org.modeshape.jcr.value.Path;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -140,12 +138,6 @@ private boolean doHasPermission(final Session session, final Path absPath, final
return true;
}

@Override
public FedoraUserSecurityContext getFedoraUserSecurityContext(final Principal userPrincipal) {
return new FedoraUserSecurityContext(userPrincipal, this);
}


private static Principal getUserPrincipal(final Session session) {
final Object value = session.getAttribute(FEDORA_USER_PRINCIPAL);
if (value instanceof Principal) {
Expand Down

0 comments on commit 27fd8b9

Please sign in to comment.