aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Photo.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-05-15 10:56:58 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-05-15 10:56:58 +0100
commit405e702f0b7f1b99946aea0d8ad028c53e5db53a (patch)
tree794c4f9018dce0b7dcfc6bd4d0378cf66118b040 /perllib/FixMyStreet/App/Controller/Photo.pm
parent60c6248c2fabb6a2144549e89f6bb238264b7d95 (diff)
Fix admin photo display.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Photo.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Photo.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Photo.pm b/perllib/FixMyStreet/App/Controller/Photo.pm
index cefb2695a..8b00d1533 100644
--- a/perllib/FixMyStreet/App/Controller/Photo.pm
+++ b/perllib/FixMyStreet/App/Controller/Photo.pm
@@ -74,10 +74,7 @@ sub index :LocalRegex('^(c/)?(\d+)(?:\.(full|tn|fp))?\.jpeg$') {
$c->detach( 'no_photo' ) unless @photo;
my $item = $photo[0];
- # This should only be for reports, not updates
- unless ( $c->cobrand->allow_photo_display($item) || ( $c->user_exists && $c->user->from_body ) ) {
- $c->detach( 'no_photo' )
- }
+ $c->detach( 'no_photo' ) unless $c->cobrand->allow_photo_display($item); # Should only be for reports, not updates
my $photo = $item->photo;
# If photo field contains a hash