Simple permission checker for Nette Framework
The best way to install ipub/permissions is using Composer:
$ composer require ipub/permissions:@dev
After that you have to register extension in config.neon.
Package contains trait, which you will have to use in presenter to override default checkRequirements method. This works only for PHP 5.4+, for older version you can simply copy trait content and paste it into class where you want to use it.
class BasePresenter extends Nette\Application\UI\Presenter
Learn how to control access to your application in documentation.