You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!commission)returnres.status(404).render('error',{ tenant,title: 'Not Found',message: 'The requested commission was not found.'});
246
+
if(commission.locked&&(getUserRole(req.session)==='user'))returnres.status(403).render('error',{ tenant,title: 'Forbidden',message: 'You do not have permission to edit this commission.'});
if(!on)returnres.status(503).json({status: 'error',message: 'Service is currently offline.'});
252
+
if(!req.session)returnres.status(401).json({status: 'error',message: 'No session found. Please enable cookies and try again.'});
253
+
if(tenant.auth&&tenant.auth.enabled&&vars.userId&&!req.session[vars.userId])returnres.status(401).json({status: 'error',message: 'User not authenticated. Please log in and try again.'});
254
+
if(!tenant.slug||!tenant.name||!tenant.domain)returnres.status(500).json({status: 'error',message: 'Service is not properly configured. Please contact the administrator.'});
if(commission.locked&&(getUserRole(req.session)==='user'))returnres.status(403).json({status: 'error',message: 'You do not have permission to edit this commission.'});
0 commit comments