Disabling event creation on double click


I am trying to restrict the priviledges of a user to create an event. For this I have done

scheduler.attachEvent("onDblClick", function(event_id, native_event_object) {
// logic to check whether user has previledges for creating an event or editing it.

The problem I am having is that when I am in the unit view and I double click in a unit column where I shouldnt be able to create an event, the event is automatically created. How can I turn off this functionality?