sivin / role-panel
RolePanel is extension for Nette Framework which change user roles in development mode, where it appears in the debugger bar.
Installs: 1 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- nette/application: ^3.0
- nette/di: ^3.0
- nette/security: ^3.0
- tracy/tracy: ^2.6
This package is auto-updated.
Last update: 2024-11-18 07:18:20 UTC
README
Role Panel is an extension for Nette Framework which change user roles in development mode, where it appears in Tracy debugger bar.
Installation
-
Install library via composer:
composer require sivin/role-panel
-
Update your local configuration (e.g.
config.local.neon
) to register Role Panel to Tracy.extensions: rolePanel: SiViN\RolePanel\DI\RolePanelExtension #optional rolePanel: roleNames: r154: Section 154 5001: Writer
Usage
services: authorizator: MyAuthorizator
use Nette\Security\Permission; class MyAuthorizator extends Permission { public function __construct() { $this->addRole('user'); $this->addRole('r154'); $this->addRole('5001'); } }