fix subroutine instead of method calls for privileges

This commit is contained in:
Colin Kuskie 2007-01-12 17:56:43 +00:00
parent 55b5f05041
commit 4056586ad7
3 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@
correctly. (Martin Kamerbeek / Oqapi)
- fix: Macro documentation now states whether or not a macro can be nested
inside other macro and if so, under what conditions.
- fix: Media Folder (perlDreamer Consulting, LLC)
7.3.4
- fix: SQLForm - cannot add new asset (Martin Kamerbeek / Oqapi)

View file

@ -1385,7 +1385,7 @@ sub www_edit
my $session = $self->session;
my $i18n = WebGUI::International->new($session, 'Asset_Calendar');
return WebGUI::Privilege::insufficient() unless $self->canEdit;
return $session->privilege->insufficient() unless $self->canEdit;
$self->getAdminConsole->setHelp("Calendar add/edit", "Calendar");

View file

@ -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');