mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
36 lines
522 B
JavaScript
36 lines
522 B
JavaScript
|
|
module.exports = {
|
||
|
|
|
||
|
|
|
||
|
|
friendlyName: 'View waitlist',
|
||
|
|
|
||
|
|
|
||
|
|
description: 'Display "Waitlist" page.',
|
||
|
|
|
||
|
|
|
||
|
|
exits: {
|
||
|
|
|
||
|
|
success: {
|
||
|
|
viewTemplatePath: 'pages/try-fleet/waitlist'
|
||
|
|
},
|
||
|
|
|
||
|
|
redirect: {
|
||
|
|
description: 'This user does not have a valid Fleet Sandbox instance and is being redirected.',
|
||
|
|
responseType: 'redirect'
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
},
|
||
|
|
|
||
|
|
|
||
|
|
fn: async function () {
|
||
|
|
if(!this.req.me.inSandboxWaitlist){
|
||
|
|
throw {redirect: '/try-fleet/sandbox' };
|
||
|
|
}
|
||
|
|
// Respond with view.
|
||
|
|
return {};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
};
|