mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 09:53:34 +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();
|
$calendarList = $this->service->calendarList->listCalendarList();
|
||||||
$calendars = array();
|
$calendars = array();
|
||||||
foreach ($calendarList->items as $google_calendar) {
|
foreach ($calendarList->items as $google_calendar) {
|
||||||
|
if ($google_calendar->getAccessRole() === 'reader') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$calendars[] = array(
|
$calendars[] = array(
|
||||||
'id' => $google_calendar->id,
|
'id' => $google_calendar->id,
|
||||||
'summary' => $google_calendar->summary
|
'summary' => $google_calendar->summary
|
||||||
|
|
Loading…
Reference in a new issue