diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 0b52d8ee0..5ffc026b5 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -5,6 +5,7 @@ constraints (Martin Kamerbeek / Procolix) - fix: Add event does not work WebGUI 7.0.5 in combination with Proxy Caching turned off (Wouter van Oijen / ProcoliX) + - When going to an image by it's webgui url in admin mode, you are now shown the image instead of being taken to the edit screen for the image. 7.0.6 - fix: Error in DateTime.pm diff --git a/lib/WebGUI/Asset/File/Image.pm b/lib/WebGUI/Asset/File/Image.pm index c325fbc86..78da95fbf 100644 --- a/lib/WebGUI/Asset/File/Image.pm +++ b/lib/WebGUI/Asset/File/Image.pm @@ -307,9 +307,6 @@ A web executable method that redirects the user to the specified page, or displa sub www_view { my $self = shift; - if ($self->session->var->get("adminOn")) { - return $self->www_edit; - } my $storage = $self->getStorageLocation; $self->session->http->setRedirect($storage->getUrl($self->get("filename"))); $self->session->http->setStreamedFile($storage->getPath($self->get("filename")));