Fix hasRank check for users sending PMs