Added a the beginnings of a test suite for the wiki. Fixed privilege check in the media folder.
This commit is contained in:
parent
4628a7f470
commit
e92871629c
4 changed files with 49 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue