From caa48e7b800f503641b44a656fcbbda9d6d35d92 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 5 Jun 2020 17:50:52 -0400 Subject: [PATCH] Finish canEdit function --- scripts/ZoneMinder/lib/ZoneMinder/Event.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm index 020c67562..2ff51d704 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm @@ -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__