Another checkpoint.
This commit is contained in:
parent
2bbd1c8610
commit
3e5c9d04ae
4 changed files with 184 additions and 8 deletions
|
|
@ -249,9 +249,6 @@ sub getEditFormUploadControl {
|
|||
sub getFileUrl {
|
||||
my $self = shift;
|
||||
#return $self->get("url");
|
||||
if (-f $self->getStorageLocation->getPath('crop-' . $self->get("filename"))) {
|
||||
return $self->getStorageLocation->getUrl('crop-' . $self->get("filename"));
|
||||
}
|
||||
return $self->getStorageLocation->getUrl($self->get("filename"));
|
||||
}
|
||||
|
||||
|
|
@ -561,6 +558,7 @@ sub www_edit {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
||||
sub www_view {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->noAccess() unless $self->canView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue