Added a the beginnings of a test suite for the wiki. Fixed privilege check in the media folder.

This commit is contained in:
Roy Johnson 2006-12-21 16:19:37 +00:00
parent 4628a7f470
commit e92871629c
4 changed files with 49 additions and 1 deletions

View file

@ -373,7 +373,7 @@ sub www_richEditAddFolderSave {
# get base url
my $base = WebGUI::Asset->newByUrl($session) || WebGUI::Asset->getRoot($session);
# check if user can edit the current asset
return WebGUI::Privilege::insufficient() unless $base->canEdit;
return $session->privilege->insufficient() unless $base->canEdit;
my $filename = $session->form->process('filename') || 'untitled';
$base->addChild({