Check if a certain user has sudo access

To check if a certain user has sudo access, use:

sudo -l -U user_name
If the user doesn’t have sudo rights, you should see this:
User is not allowed to run sudo on server