mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Do not display read-only google calendars for selection.
This commit is contained in:
parent
34a7277a1e
commit
82fea484c0
1 changed files with 4 additions and 0 deletions
|
@ -351,6 +351,10 @@ class Google_Sync {
|
|||
$calendarList = $this->service->calendarList->listCalendarList();
|
||||
$calendars = array();
|
||||
foreach ($calendarList->items as $google_calendar) {
|
||||
if ($google_calendar->getAccessRole() === 'reader') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$calendars[] = array(
|
||||
'id' => $google_calendar->id,
|
||||
'summary' => $google_calendar->summary
|
||||
|
|
Loading…
Reference in a new issue