Skip to content
simple bar panel for Tracy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json
permissions.jpg

README.md

permissions-panel

permission-panel is simple bar panel for Tracy. Permission-panel containt list of roles and resources of Nette\Security\Permission

Tracy panel screenshot

Installation

$ composer require krausv/permissions-panel

Register permissions-panel in config.neon

extensions:
  permissions-panel: Krausv\PermissionsPanel\Nette\DI\PermissionsPanelExtension(%debugMode%)

and register Nette\Security\Permission

services:
	authorizator:
	    class: Nette\Security\Permission
	    setup:
	        - addRole('guest')
	        - addRole('admin')
	        - addResource('Users')
	        - addResource('Article')
	        - allow('admin', 'Article', 'view')
	        - allow('guest', 'Users', 'view')
	        - allow('guest', 'Users', 'delete')
You can’t perform that action at this time.