Commit e57172870674af4ca74fbafc1a2513d8c843a7e9

Authored by Neil Blakey-Milner
1 parent aece3ad3

Ensure the user is properly licensed if running a Commercial Edition.

OSS is unlimited.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5943 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 10 additions and 0 deletions
lib/session/Session.inc
... ... @@ -40,6 +40,16 @@ class Session {
40 40 global $default;
41 41  
42 42 session_start();
  43 +
  44 + if (KTPluginUtil::pluginIsActive('ktdms.wintools')) {
  45 + if (!$oUser->isAnonymous()) {
  46 + require_once(KT_DIR . '/plugins/wintools/baobabkeyutil.inc.php');
  47 + $res = BaobabKeyUtil::isBaobabUser($oUser);
  48 + if (PEAR::isError($res)) {
  49 + return $res;
  50 + }
  51 + }
  52 + }
43 53  
44 54 // bind user id to session
45 55 $_SESSION["userID"] = $iUserId;
... ...