The Authorize.user
helper checks the current user against a username whitelist.
Authorize.user(username...)
Matches any of the usernames passed as parameters.
Authorize.user("john_doe", "jane_doe").then(function() {
// This callback is only run if the user is either "john_doe" or "jane_doe"
});