I need to prevent some users from modifying some recurring events but allow them to edit others based on role permissions. I've built a function that gets called on "Edit" event but the problem is "Edit" event gets called when editing and also adding an event. I need to allow adding events but prevent editing/modifying existing recurring events. Currently scheduler_edit function prevents both editing and adding events.
Here is my stripped down scheduler_edit function:
function scheduler_edit(e) {
if (!e.event.CanBeEdited) {
e.preventDefault();
}
}