add "asset" property to AssetHelpers.
Simplifies the API and allows us to have getForm and getUrl to make asset helpers easier to build.
This commit is contained in:
parent
df31c13e13
commit
698f40a6dd
23 changed files with 216 additions and 123 deletions
|
|
@ -34,7 +34,7 @@ These methods are available from this class:
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 process ( $asset )
|
||||
=head2 process ()
|
||||
|
||||
Cuts the asset to the clipboard. If the user cannot edit the asset, or the asset is a
|
||||
system asset, it returns an error message.
|
||||
|
|
@ -42,8 +42,9 @@ system asset, it returns an error message.
|
|||
=cut
|
||||
|
||||
sub process {
|
||||
my ($self, $asset) = @_;
|
||||
my $session = $asset->session;
|
||||
my ($self) = @_;
|
||||
my $asset = $self->asset;
|
||||
my $session = $self->session;
|
||||
|
||||
my $i18n = WebGUI::International->new($session, 'WebGUI');
|
||||
if (! $asset->canEdit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue