Skip to content

Commit 77d126a

Browse files
authored
Merge pull request #441 from datacamp/benign-fix-look-away
πŸ‘€
2 parents 912f62e + 922d705 commit 77d126a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

β€Žapi/controllers/UserController.jsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ module.exports = {
6565
FlashService.error(req, 'Cannot verify recaptcha');
6666
return res.rstudio_redirect(301,'/register');
6767
});
68+
},
69+
70+
show: function(req, res) {
71+
return res.forbidden();
6872
}
6973

7074
};

β€Žconfig/routes.jsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,6 @@ module.exports.routes = {
185185
// Parsing
186186
'get /api/parsing/jobs': 'PackageController.toParse',
187187

188+
'get /api/users/*': 'UserController.show',
189+
188190
};

0 commit comments

Comments
Β (0)