Thanks, Memphis007! Your solution worked for me also!
@etellewyn:
Find this function from ajax-event-calendar.php:
function get_event_permissions($input, $user_id) {
// users that are not logged-in see all events
if ($user_id == -1) {
$permissions->editable = false;
$permissions->cssclass = '';
} else {
// users with aec_manage_events capability can edit all events
// users with aec_add_events capability can edit events only they create
if ($input->user_id == $user_id || $user_id == false) {
$permissions->editable = true;
$permissions->cssclass = '';
} else {
$permissions->editable = false;
$permissions->cssclass = ' fc-event-disabled';
}
}
return $permissions;
}
and add these:
function get_event_permissions($input, $user_id) {
// users that are not logged-in see all events
if ($user_id == -1) {
$permissions = new stdClass(); //<--THIS
$permissions->editable = false;
$permissions->cssclass = '';
} else {
// users with aec_manage_events capability can edit all events
// users with aec_add_events capability can edit events only they create
if ($input->user_id == $user_id || $user_id == false) {
$permissions = new stdClass(); //<--THIS
$permissions->editable = true;
$permissions->cssclass = '';
} else {
$permissions = new stdClass(); //<--THIS
$permissions->editable = false;
$permissions->cssclass = ' fc-event-disabled';
}
}
return $permissions;
}
And from the inc/admin-event.php:
...snip...
global $current_user;
// initialize form for new event
get_currentuserinfo(); // wp data
$event->id = '';
...snip...
...snip...
global $current_user;
// initialize form for new event
get_currentuserinfo(); // wp data
>$event = new stdClass(); //<--THIS
$event->id = '';
...snip...