diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d5ccc97e3..b5f608624 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,11 +3,12 @@ - Added a attachment_thumbnail option to the CS RSS feed. - fix: No closure - fix: content in packages made from page layout don't include content - - No Reports In/Out Board (perlDreamer Consulting, LLC) + - fix: No Reports In/Out Board (perlDreamer Consulting, LLC) - fix: The 7.2.3-7.3.0 upgrade will no longer orphan EventsCalendars and Events on the clipboard. - fix: The upgrade script will remove any orphaned EventsCalendars and Events. + - fix: Media Folder (perlDreamer Consulting, LLC) 7.3.7 diff --git a/lib/WebGUI/Operation/FormHelpers.pm b/lib/WebGUI/Operation/FormHelpers.pm index ca27d839e..28fe01a00 100644 --- a/lib/WebGUI/Operation/FormHelpers.pm +++ b/lib/WebGUI/Operation/FormHelpers.pm @@ -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 $session->privilege->insufficient() unless $base->canEdit; + return $session->privilege->insufficient('bare') unless $base->canEdit; my $filename = $session->form->process('filename') || 'untitled'; $base->addChild({ @@ -458,7 +458,7 @@ sub www_richEditAddImageSave { #my $base = $session->asset; my $url = $base->getUrl; # check if user can edit the current asset - return $session->privilege->insufficient() unless $base->canEdit; + return $session->privilege->insufficient('bare') unless $base->canEdit; my $storage = WebGUI::Storage::Image->create($session); my $filename = $storage->addFileFromFormPost('filename'); diff --git a/lib/WebGUI/Session/Privilege.pm b/lib/WebGUI/Session/Privilege.pm index b6100285d..227e262e0 100644 --- a/lib/WebGUI/Session/Privilege.pm +++ b/lib/WebGUI/Session/Privilege.pm @@ -88,10 +88,17 @@ Returns a message stating that the user does not have the required privileges to sub insufficient { my $self = shift; + my $noStyle = shift; my $i18n = WebGUI::International->new($self->session); $self->session->http->setStatus("401", "Insufficient Privileges"); my $output = '