title: Google Calendar PHP Api - Check if user has edit rights
body: <p>I have a web site to which user can grant access to edit their Google Calendars.
  On the main page of the site a list of events from a company calendar is shown, the events are editable. </p>
  
  <p>The thing is that all users on the site doesn't have rights to edit events in the calender (their Google Account, that is). Is there any way to check if a user has rights to edit a calendar via the <a href="https://github.com/google/google-api-php-client" rel="nofollow">PHP API client</a>?<br>
  To clarify, all users shouldn't have permission to edit the calendar. If their Google account has access, the edit tools should the shown. Otherwise they just get the event list.<br></p>
  
  <p>In this case the calendar is public so everyone should be able to see the events. <br>(It wouldn't hurt if it would work with a non-public calendar as well, but I guess that is trickier. Requiring a fallback service account or something.)</p>
  
  <p>I'm currently using the <a href="https://developers.google.com/google-apps/calendar/v3/reference/events/list" rel="nofollow">list method</a> of the <a href="https://developers.google.com/google-apps/calendar/v3/reference/events" rel="nofollow">Events Resource</a> to get the events.</p>