more session related bug fixes

This commit is contained in:
JT Smith 2006-01-15 18:17:08 +00:00
parent 89a6e4efdb
commit b0d10ec7f0
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ Get the instance of this object or create a new instance if none exists
sub getInstance {
my $session = shift;
#Get Auth Settings
my $authMethod = $session->user->get("authMethod") || $session->setting->get("authMethod");
my $authMethod = $session->user->authMethod || $session->setting->get("authMethod");
$authMethod = $session->setting->get("authMethod") if($session->user->profileField("userId") eq '1');
$authMethod = $_[0] if($_[0] && isIn($_[0], @{$session->config->get("authMethods")}));
my $userId = $_[1];

View file

@ -137,7 +137,7 @@ Deletes this user.
sub delete {
my $self = shift;
$self->uncache;
foreach my $groupId (@{$self->session->user->getGroups($self->userId)}) {
foreach my $groupId (@{$self->getGroups($self->userId)}) {
WebGUI::Group->new($self->session,$groupId)->deleteUsers([$self->userId]);
}
$self->session->db->write("delete from messageLog where userId=".$self->session->db->quote($self->{_userId}));