fix subroutine instead of method calls for privileges
This commit is contained in:
parent
55b5f05041
commit
4056586ad7
3 changed files with 3 additions and 2 deletions
|
|
@ -458,7 +458,7 @@ sub www_richEditAddImageSave {
|
|||
#my $base = $session->asset;
|
||||
my $url = $base->getUrl;
|
||||
# check if user can edit the current asset
|
||||
return WebGUI::Privilege::insufficient() unless $base->canEdit;
|
||||
return $session->privilege->insufficient() unless $base->canEdit;
|
||||
|
||||
my $storage = WebGUI::Storage::Image->create($session);
|
||||
my $filename = $storage->addFileFromFormPost('filename');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue