mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 16:58:31 -04:00
Finish canEdit function
This commit is contained in:
1 parent
0905655377
commit
caa48e7b80
1 file changed
+8
-2
@@ -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__
|
||||
|
||||
Reference in new issue
Block a user