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

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