Issue Bug Closed

#25890TSFE:fe_user|user|usergroup only working for users with single group assigned

Ralph Hardwick 04/11/11, 16:59 updated 04/14/11, 21:02

Description

I cannot get typoscript to pick up usergroups of anyone who has multiple groups assigned to them.

My user array reports groups 2,21 for a logged in user but the following code doesn’t work. It works fine if a user is only a member of one of those groups.

[globalVar = TSFE:fe_user|user|usergroup = 2,21]
lib.loggedInAs = COA
lib.loggedInAs {
10 = TEXT
10.data = getIndpEnv:TYPO3_REQUEST_URL
10.wrap = <form action="|" target="_top" method="post"><br> 20 = TEXT<br> 20.data = TSFE:fe_user|user|company // TSFE:fe_user|user|name // TSFE:fe_user|user|username<br> 20.wrap = <p id="User">You are currently logged in as <strong><a href="/shop-homepage/my-account.html">|</a></strong>. If this is not you, <input type="submit" name="submit" value="Logout" class="logoutbutton"></p><br> 30 = TEXT<br> 30.value = <input type="hidden" name="logintype" value="logout"><br> 40 = TEXT<br> 40.value = <input type="hidden" name="pid" value="34"><br> 50 = TEXT<br> 50.value = </form>
}
[global]

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.