Merge pull request #136 from radiorabe/feature/freeipa-auth

FreeIPA Auth Adaptor for LibreTime
This commit is contained in:
Robb 2017-04-03 11:50:23 -04:00 committed by GitHub
commit 8f372f5610
9 changed files with 386 additions and 2 deletions

View file

@ -76,6 +76,10 @@ class Application_Common_GoogleAnalytics
/** Return true if the user used to be on a trial plan and was just converted to a paid plan. */
public static function didPaidConversionOccur($request)
{
if (LIBRETIME_ENABLE_GOOGLE_ANALYTICS !== true) {
return false;
}
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
if ($userInfo) {
$user = new Application_Model_User($userInfo->id);