mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +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,
|
# admin for authentication. Resource calendars cannot be impersonated,
|
||||||
# so we need to access them as the admin.
|
# so we need to access them as the admin.
|
||||||
cal = None
|
cal = None
|
||||||
if (not calname.endswith('@resource.calendar.google.com') and
|
if not calname.endswith('.calendar.google.com'):
|
||||||
not calname.endswith('@group.calendar.google.com')):
|
|
||||||
cal = __main__.buildGAPIServiceObject('calendar', calendarId, False)
|
cal = __main__.buildGAPIServiceObject('calendar', calendarId, False)
|
||||||
if cal is None:
|
if cal is None:
|
||||||
_, cal = buildCalendarGAPIObject(__main__._getValueFromOAuth('email'))
|
_, cal = buildCalendarGAPIObject(__main__._getValueFromOAuth('email'))
|
||||||
|
|||||||
Reference in New Issue
Block a user