Commit f4083bba authored by Jonny Bradley's avatar Jonny Bradley

[FIX] Add missing loginlib functions required for user conditions feature [partial bp/r49174]

parent 712f596a
......@@ -13,6 +13,21 @@ if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
class LoginLib
{
function getUser()
{
return $GLOBALS['user'];
}
function getUserId()
{
$id = TikiLib::lib('tiki')->get_user_id($this->getUser());
if ($id === -1) {
return false;
} else {
return $id;
}
}
function activateSession($user)
{
global $user_cookie_site;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment