Users are now prompted to log in, if not logged in, when clicking on an unsubscribe CS email link

This commit is contained in:
Kaleb Murphy 2008-09-10 20:18:27 +00:00
parent ecdf976f45
commit 498cc40701
2 changed files with 8 additions and 3 deletions

View file

@ -32,6 +32,7 @@
- added: Inbox messages now tell you who the message was from - added: Inbox messages now tell you who the message was from
- fixed: Reoccurring transactions now update the correct user id - fixed: Reoccurring transactions now update the correct user id
- fixed: I need a template for this display - fixed: I need a template for this display
- fixed: If a user clicks on an unsubscribe link in an email and they are not logged into WebGUI, they are now prompted to log in so that they can then unsbscribe.
7.5.22 7.5.22
- fixed: Layout template now gets prepared correctly - fixed: Layout template now gets prepared correctly

View file

@ -1472,9 +1472,13 @@ The web method to unsubscribe from a collaboration.
=cut =cut
sub www_unsubscribe { sub www_unsubscribe {
my $self = shift; my $self = shift;
$self->unsubscribe if $self->canSubscribe; if($self->canSubscribe){
return $self->www_view; $self->unsubscribe;
return $self->www_view;
}else{
return $self->session->privilege->noAccess;
}
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------