fixed: non-admin users can now add Gallery assets
This commit is contained in:
parent
edf4cc4220
commit
f8b9098991
2 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.5.14
|
||||
- fixed: Non-admin users can now add Gallery assets
|
||||
|
||||
7.5.13
|
||||
- fixed: storage locations for some assets in packages not imported correctly
|
||||
|
|
|
|||
|
|
@ -508,10 +508,10 @@ sub canEdit {
|
|||
|
||||
my $form = $self->session->form;
|
||||
|
||||
if ( $form->get('func') eq "add" ) {
|
||||
if ( $form->get('func') eq "add" && $form->get( 'class' )->isa( "WebGUI::Asset::Wobject::GalleryAlbum" ) ) {
|
||||
return $self->canAddFile( $userId );
|
||||
}
|
||||
elsif ( $form->get('func') eq "editSave" && $form->get('assetId') eq "new" ) {
|
||||
elsif ( $form->get('func') eq "editSave" && $form->get('assetId') eq "new" && $form->get( 'class' )->isa( 'WebGUI::Asset::Wobject::GalleryAlbum' ) ) {
|
||||
return $self->canAddFile( $userId );
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue