Skip to content

Commit

Permalink
Use resource projection flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ride90 committed Jun 4, 2020
1 parent 7fb4a06 commit f434d56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eve/methods/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,9 @@ def resolve_resource_projection(document, resource):

resource_def = config.DOMAIN[resource]
projection = resource_def["datasource"]["projection"]
projection_enabled = resource_def["projection"]
# Fix for #1338
if not projection or not config.PROJECTION:
if not projection_enabled or not projection:
# BANDWIDTH_SAVER is disabled, and no projection is defined or
# projection feature is disabled, so return entire document.
return
Expand Down

0 comments on commit f434d56

Please sign in to comment.