Skip to content

Commit

Permalink
Feature flag to control if everyone can edit queries
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Aug 1, 2015
1 parent 949045f commit 189ceaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def index(**kwargs):
}

features = {
'clientSideMetrics': settings.CLIENT_SIDE_METRICS
'clientSideMetrics': settings.CLIENT_SIDE_METRICS,
'allowAllToEditQueries': settings.FEATURE_ALLOW_ALL_TO_EDIT_QUERIES
}

return render_template("index.html", user=json.dumps(user), name=settings.NAME,
Expand Down
1 change: 1 addition & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ def all_settings():
])))

# Features:
FEATURE_ALLOW_ALL_TO_EDIT_QUERIES = parse_boolean(os.environ.get("REDASH_FEATURE_ALLOW_ALL_TO_EDIT", "true"))
FEATURE_TABLES_PERMISSIONS = parse_boolean(os.environ.get("REDASH_FEATURE_TABLES_PERMISSIONS", "false"))

0 comments on commit 189ceaf

Please sign in to comment.