func userFor(req *http.Request) *User {
	ssn := session.GetSession(req)
	log.Debug("userFor", "session", ssn)
	log.Debug("userFor", "session email", ssn.Email)
	return System.GetUser(session.GetSession(req).Email)
}
// userFor looks up the User instance, primarily for its Privileged flag for use
// in perms checks. This can return nil in principle, but we assume we're called
// with the emailInspector sentinel.
userFor looks up the User instance, primarily for its Privileged flag for use
in perms checks. This can return nil in principle, but we assume we're called
with the emailInspector sentinel.
// userFor looks up the User instance primarily for its Privileged flag for use // in perms checks . This can return nil in principle but we assume we ' re called // with the emailInspector sentinel .
func userFor(req *http.Request) *User {
	ssn := session.GetSession(req)
	log.Debug("userFor", "session", ssn)
	log.Debug("userFor", "session email", ssn.Email)
	return System.GetUser(session.GetSession(req).Email)
}
func userFor ( req * http . Request ) * User { ssn := session . GetSession ( req ) log . Debug ( " " , " " , ssn ) log . Debug ( " " , " " , ssn . Email ) return System . GetUser ( session . GetSession ( req ) . Email ) }
userFor looks up the User instance, primarily for its Privileged flag for use
in perms checks.
userFor looks up the User instance primarily for its Privileged flag for use in perms checks .