If you are going after either a friend's ex or failed attempt where do you guys draw the line for when you should ask permission to go for her?

IMO if your buddy had feelings for the girl you should ask. Otherwise just go for her! What do you guys think?