Fixed bug in gam whatis <EmailItem> where the check for an invitable user always failed.

This commit is contained in:
Ross Scroggs
2025-06-11 13:06:13 -07:00
parent 51f8ebe8e2
commit 43ecba07bb
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
7.09.04
Fixed bug in `gam whatis <EmailItem>` where the check for an invitable user always failed.
7.09.03 7.09.03
Updated `gam <UserTypeEntity> create focustime|outofoffice ... timerange <Time> <Time>` to check Updated `gam <UserTypeEntity> create focustime|outofoffice ... timerange <Time> <Time>` to check

View File

@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
""" """
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>' __author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
__version__ = '7.09.03' __version__ = '7.09.04'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
#pylint: disable=wrong-import-position #pylint: disable=wrong-import-position
@ -13138,7 +13138,7 @@ def doWhatIs():
entityUnknownWarning(Ent.EMAIL, email) entityUnknownWarning(Ent.EMAIL, email)
setSysExitRC(ENTITY_IS_UKNOWN_RC) setSysExitRC(ENTITY_IS_UKNOWN_RC)
return return
if not invitableCheck or not getSvcAcctCredentials(API.CLOUDIDENTITY_USERINVITATIONS, _getAdminEmail(), softErrors=True): if not invitableCheck:
isInvitableUser = False isInvitableUser = False
else: else:
isInvitableUser, ci = _getIsInvitableUser(None, email) isInvitableUser, ci = _getIsInvitableUser(None, email)