lib/app-init.js
function(session) {
        if (session && session.user) {
            if (session.user.roles)
                return { roles: session.user.roles };
            return { roles: "user" };
        }
        return { roles: "public" };
    }
function(session) {
        if (session && session.user) {
            if (session.user.roles)
                return { roles: session.user.roles };
            return { roles: "user" };
        }
        return { roles: "public" };
    }
function ( session ) { if ( session && session . user ) { if ( session . user . roles ) return { roles : session . user . roles } ; return { roles : "user" } ; } return { roles : "public" } ; }
default session modes handler
default session modes handler