well, my pseudocode was what I ment.
well, not just pseudo but actually all you need.

like said, if you don't have access to the printer, it does not add it.
thus the permission check is not needed at all.
_________________________
!

download KiXnet