fix logic issue for admin invite feature.

Signed-off-by: TomWu <phperwuhan@gmail.com>