change method perm to hasPerm in Class Auth.