You've already forked oncall
mirror of
https://github.com/linkedin/oncall.git
synced 2025-11-29 23:38:17 +02:00
Disallow empty team name on PUT
This commit is contained in:
@@ -204,6 +204,8 @@ def on_put(req, resp, team):
|
||||
if invalid_char:
|
||||
raise HTTPBadRequest('invalid team name',
|
||||
'team name contains invalid character "%s"' % invalid_char.group())
|
||||
elif data['name'] == '':
|
||||
raise HTTPBadRequest('invalid team name', 'empty team name')
|
||||
|
||||
if 'iris_plan' in data and data['iris_plan']:
|
||||
iris_plan = data['iris_plan']
|
||||
|
||||
Reference in New Issue
Block a user