From f1bc38de6cc4906a058d4fe0c5af283bcca88d98 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 29 Oct 2009 14:01:53 -0500 Subject: [PATCH] The auto add to group and auto delete from group operations that are used with the GroupAdd and GroupDelete macros were fixed to make the user log in if they aren't already. Conflicts: docs/changelog/7.x.x.txt --- docs/changelog/7.x.x.txt | 22 ++++++++++++++++++++++ lib/WebGUI/Operation/Group.pm | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 22871f4e7..83543b139 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,27 @@ 7.8.3 - Fixed an error being thrown by the CalendarUpdateFeeds workflow activity. + - The auto add to group and auto delete from group operations that are used with the GroupAdd and GroupDelete macros were fixed to make the user log in if they aren't already. + +7.7.24 + - fixed #11176: New upgrade error in 7.6.35 to 7.7.17 + - fixed #11181: ableToBeFriend label not i18n + +7.7.23 + - fixed #11126: WebGUI database has varchar fields + - fixed #10989: DataForm List: No pagination + - fixed #11128: Thing breaks w/ default value for date field + - fixed #10888: Issues with adding points to Maps + - fixed #11139: referencing an item in the clipboard + - fixed #11146: Upgrade Error 7.7.21 to 7.7.22 + - fixed #11147: fail safe template is missing embedded style + - fixed #11137: Customers see failed orders + - fixed #11156: Syndicated Content doesn't show all headlines in feed + - fixed #11138: RichEdit, upload image does not commit a version tag + - refixed #2569: robots.txt issues + - fixed #11157: calendar tool for entering add event date + - fixed #11158: Calendar iCal feed doesn't show today's all-day events + - fixed #11131: https / http URLs still caching across secure/insecure boundary + - fixed #11093: Spectre cron can DoS server with many sites - fixed #11074: Links to CS posts not working - fixed #11152: Image edits do not autocommit version tags - fixed template attachments are not cleaned up during purge diff --git a/lib/WebGUI/Operation/Group.pm b/lib/WebGUI/Operation/Group.pm index 753ea5d9f..2ebf7d6b7 100644 --- a/lib/WebGUI/Operation/Group.pm +++ b/lib/WebGUI/Operation/Group.pm @@ -337,7 +337,7 @@ A WebGUI::Session object sub www_autoAddToGroup { my $session = shift; - return WebGUI::AdminConsole->new($session,"groups")->render($session->privilege->insufficient()) unless ($session->user->userId ne 1); + return $self->session->privilege->noAccess() if ($session->user->isVisitor); my $group = WebGUI::Group->new($session,$session->form->process("groupId")); if ($group && $group->autoAdd) { $group->addUsers([$session->user->userId],[$session->form->process("groupId")]); @@ -361,7 +361,7 @@ A WebGUI::Session object sub www_autoDeleteFromGroup { my $session = shift; - return WebGUI::AdminConsole->new($session,"groups")->render($session->privilege->insufficient()) unless ($session->user->userId ne 1); + return $self->session->privilege->noAccess() if ($session->user->isVisitor); my $group = WebGUI::Group->new($session,$session->form->process("groupId")); if ($group && $group->autoDelete) { $group->deleteUsers([$session->user->userId],[$session->form->process("groupId")]);