Issue Bug Closed

#22603Condition misses check for no logged in user

Steffen Kamper 05/07/10, 02:51 updated 04/28/14, 09:45

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)

Reviews 0

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