aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-08-22 14:12:44 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-08-28 13:17:30 +0100
commit71e86b456f99418cc646dac3f8bffe87ec4fc7f6 (patch)
tree5d999c35e2d95c5c6a85be9bbdcac1f4ecba3752 /templates
parent2d916ec746f5d7091bb98890bf035ab1c0f14443 (diff)
Move moderation check to own function, tidy up.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/_inspect.html2
-rw-r--r--templates/web/base/report/display.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index adb56190d..e5094d02e 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -1,4 +1,4 @@
-[% permissions = c.user.permissions(c, problem.bodies_str) %]
+[% permissions = c.user.permissions(problem) %]
[% second_column = BLOCK -%]
<div id="side-inspect">
diff --git a/templates/web/base/report/display.html b/templates/web/base/report/display.html
index ebe969994..eedbc4f85 100644
--- a/templates/web/base/report/display.html
+++ b/templates/web/base/report/display.html
@@ -40,7 +40,7 @@
[% INCLUDE 'report/banner.html' %]
[% IF c.user_exists %]
- [% DEFAULT permissions = c.user.permissions(c, problem.bodies_str) %]
+ [% DEFAULT permissions = c.user.permissions(problem) %]
[%- END %]
[% INCLUDE 'report/_main.html' %]