Files
zoneminder/web/includes
Nic Boet 1a8964d066 fix: count the user's role in Event::canView() and canEdit()
Event::canView() and canEdit() compared the user's own Events field, so a
user whose own Events was None but whose role granted Events=View or Edit
could not view or edit any event, while the global canView('Events') and
canEdit('Events') let them through to the page. Use ZM\User::canView() and
canEdit(), which read the role as well. The monitor check is unchanged.

refs #5189
2026-10-21 19:06:25 -05:00
..