Fix show_if ordering and add a check that fails if misordered

Before this change, these endpoints still existed even if the flag was off
This commit is contained in:
Joseph Schorr 2017-05-01 13:14:20 -04:00
parent 8552f7f6e6
commit 3e8bc07b6c
4 changed files with 16 additions and 4 deletions

View file

@ -29,8 +29,8 @@ def record_view(record):
@internal_only
@show_if(features.MAILING)
@resource('/v1/repository/<apirepopath:repository>/authorizedemail/<email>')
@show_if(features.MAILING)
@path_param('repository', 'The full path of the repository. e.g. namespace/name')
@path_param('email', 'The e-mail address')
class RepositoryAuthorizedEmail(RepositoryParamResource):