See example here: https://github.com/peerlibrary/peerlibrary/blob/master/server/lib/access.coffee#L40