Restric access to patterns code?

Yes! Try this trick: