From: <gem...@li...> - 2011-12-09 12:40:52
|
Revision: 350 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=350&view=rev Author: matijsdejong Date: 2011-12-09 12:40:42 +0000 (Fri, 09 Dec 2011) Log Message: ----------- Fix where users stayed OldStaffUser Modified Paths: -------------- trunk/library/classes/Gems/User/User.php Modified: trunk/library/classes/Gems/User/User.php =================================================================== --- trunk/library/classes/Gems/User/User.php 2011-12-08 17:01:45 UTC (rev 349) +++ trunk/library/classes/Gems/User/User.php 2011-12-09 12:40:42 UTC (rev 350) @@ -215,6 +215,8 @@ */ public function afterLogin($formValues) { if (is_callable(array($this->definition, 'afterLogin'))) { + // Use the USERS organization, not the one he or she is using currently + $formValues['organization'] = $this->getBaseOrganizationId(); $this->definition->afterLogin($this->_authResult, $formValues); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |