Reputation: 11
I am using fullcalendar on my web site and I would like to know if I can make it only show the events for the usere that is logged in and not to all the users on the website. I have looked at all 2000 + questions and answers stackoverflow and could not find a answer to this questions.
Upvotes: 0
Views: 318
Reputation: 2630
pretty simple. In event source,
eventSources:[ <?php if(userloggedin) echo $eventArray1; ?>,
<?php if(userloggedin) echo $eventArray2; ?>]
check the condition and insert the event source.
Upvotes: 7