Making calendar events global

Hi,
I am customising suitecrm for an event management company.
I have managed to acquire a script that automatically adds opportunities (events) to the calendar (it creates a corresponding task for each opportunity).
But when other users login and view their calendar, they can only their own opportunities (events) unless they click on shared and view every users individual calendar. This is very time consuming however, and I was therefore hoping that there would be a way for all calendar events to be added to everyone’s calendar so everyone can see all the events straight away in one go!
Thanks

You would have to code this yourself.

Thanks. Yeah I found the line in calendaractivity.php that only shows the logged in users tasks and removed it and now works perfectly!

1 Like

Hi ajgisme,

I have the same issue at the moment, could you point me in the right direction of which line i should be removing to get events in the calendar to be shown globally?

Kind Regards

Jay

No problem!
Find these two lines in CalendarActivity.php and comment them both out:
(lines 227 & 231)

if(ACLController::checkAccess(‘Tasks’, ‘list’,$current_user->id == $user_id))

$where .= " AND tasks.assigned_user_id=’$user_id’ ";

There ya go!

1 Like

Thank you so much, it is really appreciated :slight_smile:

Kind Regards

Jay