Skip to content

Commit ac13e06

Browse files
authored
Benchmarks: Add additional permissions for AJAX calls (#10640)
1 parent 0df3a0c commit ac13e06

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dojo/benchmark/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def add_benchmark(queryset, product):
4343
pass
4444

4545

46+
@user_is_authorized(Product, Permissions.Benchmark_Edit, "pid")
4647
def update_benchmark(request, pid, _type):
4748
if request.method == "POST":
4849
bench_id = request.POST.get("bench_id")
@@ -90,6 +91,7 @@ def update_benchmark(request, pid, _type):
9091
)
9192

9293

94+
@user_is_authorized(Product, Permissions.Benchmark_Edit, "pid")
9395
def update_benchmark_summary(request, pid, _type, summary):
9496
if request.method == "POST":
9597
field = request.POST.get("field")

0 commit comments

Comments
 (0)