Skip to content
Permalink
Browse files

class vs className fix for the Gallery

  • Loading branch information...
perlDreamer committed Oct 16, 2011
1 parent 7bfcdd1 commit 0ff98ac46d911c3c9769664c0b958f827fd8f6b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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' ) ) {

0 comments on commit 0ff98ac

Please sign in to comment.
You can’t perform that action at this time.