Add setting to redirect logged in users to dashboard
This commit is contained in:
@@ -16,7 +16,7 @@ class Home extends Controller {
|
||||
*/
|
||||
async welcome(req, res){
|
||||
const Setting = this.models.get('Setting')
|
||||
if ( await Setting.get('home.allow_landing') ) {
|
||||
if ( await Setting.get('home.allow_landing') && !(req.user && await Setting.get('home.redirect_authenticated')) ) {
|
||||
return res.page('welcome', {
|
||||
user: req.user,
|
||||
...this.Vue.data(),
|
||||
|
||||
Reference in New Issue
Block a user