forked from science-ation/science-ation
Add a user id to the session when someone adds a role (and thus a user) to an account that does not currently correspond to any user records.
This commit is contained in:
parent
462427c1b1
commit
ceb55a49a6
@ -218,7 +218,7 @@ function account_add_role($accounts_id, $roles_id, $conferences_id, $password =
|
||||
}else{
|
||||
// They're not actually connected to this conference, let's hook 'em up
|
||||
$u = user_create($accounts_id, $conferences_id);
|
||||
$users_id = $u['id'];
|
||||
$_SESSION['users_id'] = $users_id = $u['id'];
|
||||
}
|
||||
|
||||
// we now have the user id that we need, let's check to see whether or not they
|
||||
|
Loading…
Reference in New Issue
Block a user