Skip to content

RolePanel is extension for Nette Framework which change user roles in development mode, where it appears in the debugger bar.

License

Notifications You must be signed in to change notification settings

SiViN/role-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Panel

License Total Downloads

Role Panel is an extension for Nette Framework which change user roles in development mode, where it appears in Tracy debugger bar.

Installation

  1. Install library via composer:

    composer require sivin/role-panel
  2. 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');
    }
}

Screenshot

About

RolePanel is extension for Nette Framework which change user roles in development mode, where it appears in the debugger bar.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages