mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-08-21 16:55:31 -05:00
fix: guest mode pid not being set correctly
This commit is contained in:
@@ -37,6 +37,7 @@ async function webAuth(request, response, next) {
|
||||
(isStartOfPath(request.path, '/posts/') && !request.path.includes('/empathy'))) {
|
||||
if (!request.pid && request.guest_access && !request.isWrite) {
|
||||
request.pid = 1000000000;
|
||||
response.locals.pid = request.pid;
|
||||
return next();
|
||||
} else if (!request.pid) {
|
||||
return response.redirect('/login');
|
||||
|
||||
Reference in New Issue
Block a user