File tree Expand file tree Collapse file tree
admin_sdk/groups_settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646ANYONE_CAN_VIEW_MEMBERSHIP = 'ANYONE_CAN_VIEW'
4747
4848def get_credentials ():
49- """Gets valid user credentials from storage.
49+ """
50+ Gets valid user credentials from storage.
5051
5152 If nothing has been stored, or if the stored credentials are invalid,
5253 the OAuth2 flow is completed to obtain the new credentials.
@@ -71,11 +72,11 @@ def print_group_settings(group_email, settings):
7172 allow_external_members = settings ['allowExternalMembers' ]
7273 who_can_post_message = settings ['whoCanPostMessage' ]
7374 who_can_view_membership = settings ['whoCanViewMembership' ]
74- if (who_can_view_group == ANYONE_CAN_VIEW_GROUP
75- or who_can_join == ANYONE_CAN_JOIN_GROUP
76- or allow_external_members == EXTERNAL_MEMBERS_CAN_JOIN
77- or who_can_post_message == ANYONE_CAN_POST_MESSAGE
78- or who_can_view_membership == ANYONE_CAN_VIEW_MEMBERSHIP ):
75+ if (who_can_view_group == ANYONE_CAN_VIEW_GROUP or
76+ who_can_join == ANYONE_CAN_JOIN_GROUP or
77+ allow_external_members == EXTERNAL_MEMBERS_CAN_JOIN or
78+ who_can_post_message == ANYONE_CAN_POST_MESSAGE or
79+ who_can_view_membership == ANYONE_CAN_VIEW_MEMBERSHIP ):
7980 print (group_email )
8081 print ('\t whoCanViewGroup - {0}' .format (who_can_view_group ))
8182 print ('\t whoCanJoin - {0}' .format (who_can_join ))
You can’t perform that action at this time.
0 commit comments