Perbuild/Pervisit fix

Perbuild was still allowing the user to set a build permission higher
than their rank, pervisit had the same issue, this should fix it