add helper to block/release user in Shlomi Noach's way
(contribution from kaiwangchen)