Added Authorization plugin

Added LDAPAuthorization plugin
This commit is contained in:
Craig Andrews
2009-11-18 14:19:43 -05:00
parent 1d6bacc681
commit d07df8a796
8 changed files with 371 additions and 9 deletions

View File

@@ -196,10 +196,15 @@ function common_set_user($user)
}
if ($user) {
common_ensure_session();
$_SESSION['userid'] = $user->id;
$_cur = $user;
return $_cur;
if (Event::handle('StartSetUser', array(&$user))) {
if($user){
common_ensure_session();
$_SESSION['userid'] = $user->id;
$_cur = $user;
Event::handle('EndSetUser', array($user));
return $_cur;
}
}
}
return false;
}