Skip to content

Commit

Permalink
Merge pull request #2031 from getredash/patches
Browse files Browse the repository at this point in the history
Add: option to disable sending an invite to a new user
  • Loading branch information
arikfr committed Oct 15, 2017
2 parents c28ced1 + 1110e17 commit f28eda4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redash/handlers/users.py
Expand Up @@ -49,7 +49,10 @@ def post(self):
'object_type': 'user'
})

invite_url = invite_user(self.current_org, self.current_user, user)
if request.args.get('no_invite') is not None:
invite_url = invite_link_for_user(user)
else:
invite_url = invite_user(self.current_org, self.current_user, user)

d = user.to_dict()
d['invite_link'] = invite_url
Expand Down

0 comments on commit f28eda4

Please sign in to comment.