Fixed typo call to check_permissions()

Also added unit test to cover the function containing the typo.
This commit is contained in:
2016-05-09 12:52:44 +02:00
parent 4316c4d450
commit a90f13486a
2 changed files with 14 additions and 1 deletions

View File

@@ -388,7 +388,7 @@ def project_node_type_has_method(response):
return abort(404)
# Check permissions and append the allowed_methods to the node_type
check_permissions('project', response, 'GET', append_allowed_methods=True,
check_permissions('projects', response, 'GET', append_allowed_methods=True,
check_node_type=node_type_name)