2017 © Pedro Peláez
 

library permission-checker

Access permission check & latte macros

image

foowie/permission-checker

Access permission check & latte macros

  • Thursday, September 11, 2014
  • by Foowie
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,333 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Foowie\PermissionChecker

Installation

Include extension in config.neon, (*1)

extensions:
    permission: Foowie\PermissionChecker\DI\PermissionExtension

and use PresenterPermissionTrait in your base presenter., (*2)

Usage

You can annotate presenter class, action and render methods and signal methods with these annotations:, (*3)

@loggedIn - logged user is required
@loggedIn(false) - unlogged user is required
@role(superadmin, admin) - user must have role admin or superadmin
@resource(administration) - user must be assigned to administration resource

In template files is allowed to user these macros:, (*4)

{ifAllowed 'administration'}{/ifAllowed} - user must be assigned to administration resource
{ifAllowedLink ':Administration:Dashboard:'}{/ifAllowed} - user must be allowed to display that page
<a n:ifAllowedHref=':Administration:Dashboard:'></a> - user must be allowed to display that page, shorter alternative is "allowedHref"

The Versions

11/09 2014

dev-master

9999999-dev

Access permission check & latte macros

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

by Daniel Robenek

security nette permission

16/06 2014

v0.2

0.2.0.0

Access permission check & latte macros

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

by Daniel Robenek

security nette permission

15/07 2013

v0.1

0.1.0.0

Access permission check & latte macros

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

by Daniel Robenek

nette permission