#4 - add support for sharing pages publicly, without login
This commit is contained in:
@@ -5,7 +5,7 @@ class ApiRoute extends Middleware {
|
||||
return [...super.services, 'models']
|
||||
}
|
||||
|
||||
async test(req, res, next, { allow_public = false }) {
|
||||
async test(req, res, next, { allow_public = true }) {
|
||||
// If we have an authenticated session, just continue
|
||||
if ( req.is_auth ) {
|
||||
return next()
|
||||
|
||||
Reference in New Issue
Block a user