Skip to content

Commit

Permalink
SRAM: disable join requests when invitation flow is used
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Oct 5, 2023
1 parent 1bb5f23 commit db68a53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sram.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ def sram_post_collaboration(ctx, group_name, description, expiration_date):
epoch = datetime.datetime.utcfromtimestamp(0)
epoch_date = int((date - epoch).total_seconds())

disable_join_requests = True
if config.sram_flow == 'join_request':
disable_join_requests = False

# Build SRAM payload.
payload = {
"name": 'yoda-' + group_name,
"short_name": group_name,
"description": description,
"disable_join_requests": False,
"disable_join_requests": disable_join_requests,
"disclose_member_information": True,
"disclose_email_information": True,
"expiry_date": epoch_date,
Expand Down

0 comments on commit db68a53

Please sign in to comment.