allow anyone who can edit to export any asset as a package
This commit is contained in:
parent
3979d9c2e5
commit
c3cb1c05c3
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ Returns a tarball file for the user to download containing the package data.
|
|||
|
||||
sub www_exportPackage {
|
||||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless ($self->get("isPackage") && $self->canEdit && $self->session->user->isInGroup(4));
|
||||
return $self->session->privilege->insufficient() unless ($self->canEdit);
|
||||
my $storage = $self->exportPackage;
|
||||
my $filename = $storage->getFiles->[0];
|
||||
$self->session->http->setRedirect($storage->getUrl($storage->getFiles->[0]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue