Project

General

Profile

Actions

Bug #22603

closed

Condition misses check for no logged in user

Added by Steffen Kamper over 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

its possible to check for any logged in user with
[loginUser = *]
or specified
[loginUser = 2,3]
but not the negative if no user is logged in.

If using the check alone it would be possible to do this in else
[loginUser = *]
[else]
#no user is logged in
[end]

but if you combine conditions, eg checking for wrong login data, it's not possible.

Attached patch solve this by allow empty string for not logged in user
[loginUser = ]

so you can combine it like
[loginUser = ] && [globalVar = GP:logintype = login]

(issue imported from #M14327)


Files

14327.diff (470 Bytes) 14327.diff Administrator Admin, 2010-05-07 02:51
Actions #1

Updated by Steffen Kamper over 14 years ago

Committed patch and unit test to trunk rev 7639

Actions

Also available in: Atom PDF