Add missing security test for delete org

This commit is contained in:
Joseph Schorr 2016-10-21 17:37:49 -04:00
parent 47e4b1b500
commit 5ed13da2e6
2 changed files with 14 additions and 1 deletions

View file

@ -212,8 +212,9 @@ class Organization(ApiResource):
raise NotFound()
model.user.delete_user(org, all_queues)
return 'Deleted', 204
return 'Deleted', 204
raise Unauthorized()
@resource('/v1/organization/<orgname>/private')