Thread:Project:Support desk/Function to check user rights/reply

Check out Title::userCan (includes/Title.php) and various methods in the User class (includes/User.php) for user rights.

Note blocking is generally separate from user rights.