I hate to say it, but your comments look like you don’t really read the other posts - and what’s even worth - you don’t really test what you are posting. Your assumption that the staffUser is not initialized is simply not correct. And your solution is missing a changed stateKeyPrefix, so it will not work either.
Don’t get me wrong, this is really no personal offense, but maybe you could take more care before you confuse people with incorrect advice.
Please, it really was not my intention to forbid you to post
I know, how urged one can be to share some knowledge - but it takes some discipline to not post things that might confuse people. All i ask for, is to first read (and understand) what others posted before you, before you hurry and write your own comment.
So, please stay, and keep on posting in this sense, ok? Promised?
One word about your solution:
It’s the same as mine, except that you renamed ‘staffUser’ with ‘admin’ - and forgot stateKeyPrefix. If you don’t add another stateKeyPrefix, the two user states will interfere with each other - and thus the solution will not work reliable.