mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Another non-user calendar (#1123)
* Another non-user calendar * Simplify identifying non-user calendars
This commit is contained in:
@@ -35,8 +35,7 @@ def buildCalendarDataGAPIObject(calname):
|
||||
# admin for authentication. Resource calendars cannot be impersonated,
|
||||
# so we need to access them as the admin.
|
||||
cal = None
|
||||
if (not calname.endswith('@resource.calendar.google.com') and
|
||||
not calname.endswith('@group.calendar.google.com')):
|
||||
if not calname.endswith('.calendar.google.com'):
|
||||
cal = __main__.buildGAPIServiceObject('calendar', calendarId, False)
|
||||
if cal is None:
|
||||
_, cal = buildCalendarGAPIObject(__main__._getValueFromOAuth('email'))
|
||||
|
||||
Reference in New Issue
Block a user