Don't assume there's a request.user in grant_sudo_privileges