package render

import (
	"gex/pkg/gex"
	"gex/pkg/sess"
)

func global(req *gex.Req, props Props, funcs Funcs) {
	sess := req.Ctx["Sess"].(sess.Sess)

	props["Sess"] = &sess
	props["Req"] = &req

	funcs["HasRole"] = sess.HasRole
}
