fix for mjpeg access on Shinobi start error

node-20
Moe 2023-09-12 10:33:31 -07:00
parent befe836ca7
commit 31f2e4fd28
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ module.exports = function(s,config,lang,app){
return;
}
s.checkChildProxy(req.params,function(){
if(s.group[req.params.ke]&&s.group[req.params.ke].activeMonitors[req.params.id]){
if(s.group[req.params.ke]&&s.group[req.params.ke].activeMonitors&&s.group[req.params.ke].activeMonitors[req.params.id]){
if(user.permissions.watch_stream==="0"||user.details.sub&&user.details.allmonitors!=='1'&&user.details.monitors.indexOf(req.params.id)===-1){
res.end(user.lang['Not Permitted'])
return