Skip to content

Commit

Permalink
Require change_experiment permission to select winner
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Oct 28, 2016
1 parent d7c9af9 commit 424f7e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions experiments/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def experiment_report(request, experiment_id):


def select_winner(request, experiment_id, variation_id):
if not request.user.has_perm('experiments.change_experiment'):
raise PermissionDenied
experiment = get_object_or_404(Experiment, pk=experiment_id)
variation = get_object_or_404(Page, pk=variation_id)

Expand Down

0 comments on commit 424f7e4

Please sign in to comment.