From 0ff98ac46d911c3c9769664c0b958f827fd8f6b8 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 15 Oct 2011 17:59:09 -0700 Subject: [PATCH] class vs className fix for the Gallery --- lib/WebGUI/Asset/Wobject/Gallery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/Gallery.pm b/lib/WebGUI/Asset/Wobject/Gallery.pm index 83decbf5a..0da473ab3 100644 --- a/lib/WebGUI/Asset/Wobject/Gallery.pm +++ b/lib/WebGUI/Asset/Wobject/Gallery.pm @@ -499,7 +499,7 @@ sub canEdit { my $form = $self->session->form; - if ( $form->get('func') eq "add" && $form->get( 'class' )->isa( "WebGUI::Asset::Wobject::GalleryAlbum" ) ) { + if ( $form->get('func') eq "add" && $form->get( 'className' )->isa( "WebGUI::Asset::Wobject::GalleryAlbum" ) ) { return $self->canAddFile( $userId ); } elsif ( $form->get('func') eq "editSave" && $form->get('assetId') eq "new" && $form->get( 'class' )->isa( 'WebGUI::Asset::Wobject::GalleryAlbum' ) ) {