Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rejecting sms reqs to countries #43

Merged
merged 2 commits into from
Apr 25, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Apr 21, 2017

Reject requests to send SMS to countries based on rules in the
config file

element-hq/element-web#3542

Requires matrix-org/synapse#2147 (but can be merged without)

Reject requests to send SMS to countries based on rules in the
config file

element-hq/element-web#3542
action = self.sydent.cfg.get('sms', opt)

if action not in ['allow', 'reject']:
raise Exception("Invalid SMS rule action: %s, expecting 'allow' or 'deny'" % action)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is it? deny or reject? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed!

@ara4n
Copy link
Member

ara4n commented Apr 25, 2017

lgtm other than comedy thinko

@ara4n ara4n assigned dbkr and unassigned ara4n Apr 25, 2017
@dbkr dbkr merged commit 3d3ac5a into master Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants