Yours is similar but different.
Mine allows whole groups to be white listed, where yours requires individual players to be added.
Not to mention it's a whole 18 lines of code. Yours was a bit more complicated than what I felt the original requester was asking for.
Did someone actually request something like this? I honestly almost never check Dev's Corner. Interesting..
When I was making mine, I actually made it by accident, which it then came to the possibility of actually making so sort of whitelist thing.
You're indeed is more interesting, because of it's 18 lines of code.