ipub / permissions
This package is abandoned and no longer maintained.
The author suggests using the ipub/security-module package instead.
Simple permission checker for Nette Framework
v2.1.3
2018-12-21 21:18 UTC
Requires
- php: >=7.1.0
- latte/latte: ~2.4
- nette/application: ~2.4
- nette/di: ~2.4
- nette/security: ~2.4
- nette/utils: ~2.4
Requires (Dev)
- nette/bootstrap: ~2.4
- nette/mail: ~2.4
- nette/robot-loader: ~2.4
- nette/safe-stream: ~2.3
- nette/tester: ~2.0
- pds/skeleton: ~1.0
- tracy/tracy: ~2.4
README
Simple permission checker for Nette Framework
Installation
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.
extensions:
permission: IPub\Permissions\DI\PermissionsExtension
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.
<?php class BasePresenter extends Nette\Application\UI\Presenter { use IPub\Permissions\TPermission; }
Documentation
Learn how to control access to your application in documentation.
Homepage https://www.ipublikuj.eu and repository http://github.com/iPublikuj/permissions.