Skip to content

Commit

Permalink
class vs className fix for the Gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Oct 16, 2011
1 parent 7bfcdd1 commit 0ff98ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebGUI/Asset/Wobject/Gallery.pm
Expand Up @@ -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' ) ) {
Expand Down

0 comments on commit 0ff98ac

Please sign in to comment.