NIHVIVO-2885 Any logged-in user should have one of the recognized roles. But just in case they don't, make them SELF-EDITOR.
This commit is contained in:
parent
74b425171a
commit
e5ebedf6f5
1 changed files with 3 additions and 3 deletions
|
@ -8,10 +8,9 @@ import javax.servlet.http.HttpServletRequest;
|
|||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.openrdf.model.impl.URIImpl;
|
||||
|
||||
import com.hp.hpl.jena.rdf.model.ResourceFactory;
|
||||
import com.hp.hpl.jena.rdf.model.Resource;
|
||||
import com.hp.hpl.jena.rdf.model.ResourceFactory;
|
||||
|
||||
import edu.cornell.mannlib.vedit.beans.LoginStatusBean;
|
||||
import edu.cornell.mannlib.vitro.webapp.auth.permissions.PermissionSetsLoader;
|
||||
|
@ -90,7 +89,8 @@ public class BaseResourceBean implements ResourceBean {
|
|||
} else if (roles.contains(PermissionSetsLoader.URI_SELF_EDITOR)) {
|
||||
return SELF;
|
||||
} else {
|
||||
return PUBLIC;
|
||||
// Logged in but with no recognized role? Make them SELF
|
||||
return SELF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue