Nette Authorization example

more advanced version of this idea is here