mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add in setting to control whether the site has a homepage
This commit is contained in:
parent
7440d8da58
commit
dd619f44dd
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
logger = require('logger-sharelatex')
|
||||
Settings = require('settings-sharelatex')
|
||||
_ = require('underscore')
|
||||
|
||||
Path = require "path"
|
||||
|
@ -20,12 +21,11 @@ module.exports = HomeController =
|
|||
HomeController.home(req, res)
|
||||
|
||||
home: (req, res)->
|
||||
if homepageExists
|
||||
if Settings.showHomepage and homepageExists
|
||||
res.render 'external/home'
|
||||
else
|
||||
res.redirect "/login"
|
||||
|
||||
|
||||
externalPage: (page, title) ->
|
||||
return (req, res, next = (error) ->) ->
|
||||
path = Path.resolve(__dirname + "/../../../views/external/#{page}.pug")
|
||||
|
|
Loading…
Reference in a new issue