Finish canEdit function

This commit is contained in:
Isaac Connor 2020-06-05 17:50:52 -04:00
parent 0905655377
commit caa48e7b80
1 changed files with 8 additions and 2 deletions

View File

@ -894,8 +894,14 @@ sub canEdit {
return 1;
}
if ( !$$ZoneMinder::user{MonitorIds} ) {
# User has no
}
# User has no monitor limitations
return 1;
}
if ( $$ZoneMinder::user{Events} eq 'Edit' ) {
return 1;
}
return 0;
} # end sub canEdit
1;
__END__