mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: Update /try-fleet/explore-data redirect (#15739)
Closes: #15728 Changes: - Updated `view-query-report.js` to redirect non-logged in users who visit `/try-fleet/explore-data/*` to `/try-fleet/register`
This commit is contained in:
parent
45da77b698
commit
39f9c50cda
1 changed files with 2 additions and 2 deletions
|
|
@ -54,9 +54,9 @@ module.exports = {
|
|||
throw {badConfig: 'builtStaticContent.osqueryTables'};
|
||||
}
|
||||
|
||||
// If the requesting user is not logged in, redirect them to the /try-fleet/login page with the specified hostPlatform added as a query parameter.
|
||||
// If the requesting user is not logged in, redirect them to the /try-fleet/register page with the specified hostPlatform added as a query parameter.
|
||||
if(!this.req.me){
|
||||
throw {redirect: `/try-fleet/login?targetPlatform=${encodeURIComponent(hostPlatform)}` };
|
||||
throw {redirect: `/try-fleet/register?targetPlatform=${encodeURIComponent(hostPlatform)}` };
|
||||
}
|
||||
|
||||
if(!sails.config.custom.queryIdsByTableName){
|
||||
|
|
|
|||
Loading…
Reference in a new issue