[TYPO3-english] felogin redirect by usergroup

Markus Klein klein.t3 at mfc-linz.at
Mon Dec 19 17:33:32 CET 2011


Hi Stephen,

This is the responsible code:

case 'groupLogin': // taken from dkd_redirect_at_login written by Ingmar Schlecht; database-field changed
	$groupData = $GLOBALS['TSFE']->fe_user->groupData;
	$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
		'felogin_redirectPid',
		$GLOBALS['TSFE']->fe_user->usergroup_table,
			'felogin_redirectPid!="" AND uid IN (' . implode(',', $groupData['uid']) . ')'
		);
		if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res))	{
			$redirect_url[] = $this->pi_getPageLink($row[0]); // take the first group with a redirect page
		}

Looks like we need to add this as a bugfix/feature.
Please file a request on forge for it.

Kind regards
Markus


> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] On Behalf Of Stephen Bungert
> Sent: Monday, December 19, 2011 8:42 AM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] felogin redirect by usergroup
> 
> Hello,
> 
> Is it possible to control in which order the user group redirects are used?
> Maybe so that it checks the usergroups for a redirect in the order that they are sorted in the user's fe usergroup field?
> 
> I have users with mutiple fe user groups, and several have usergroup redirects for the felogin.
> 
> Example user groups
> title= Respondents | uid = 6 | feredirect = 100 title= Clients | uid = 5 | feredirect = 101 title= STool | uid = 6 | feredirect = 102 ...
> title= US | uid = 8 | feredirect = 120
> Some users belong to just group "Respondents", "Clients", or "STool". This is fine then.
> 
> ----
> 
> 
> But some belong to "Respondents", "Clients", "STool", and "US".
> 
> No matter if group "US" occurs first in the user's list of user groups, or last they get redirected to page 100.
> How are the usergroups redirects processed? It doesn't seem to be in the order that they are sorted in the user record. Is there a way
> to control which group from a user's usergroups is selected for the redirect if 4more than one group has a redirect?
> 
> 




More information about the TYPO3-english mailing list