Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missed condition when projection is disabled per domain #1398

Merged
merged 1 commit into from
Jul 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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