prepare for rewrite of ticket counting

This commit is contained in:
2023-09-30 10:34:11 +02:00
parent b5c88e6284
commit fa5be769e2
2 changed files with 12 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ module.exports = ( app, settings ) => {
}
res.send( dat );
} else if ( req.params.call === 'reloadData' ) {
if ( req.session.loggedInAdmin ) {
if ( req.session.loggedInAdmin || req.session.loggedInUser ) {
postHandler.loadData();
res.send( 'ok' );
} else {