You're describing as "whether a member has the ability", but you're accepting a permission code as the argument. Which one is it?