\AclUser\View\HelperUserIsAllowedViewHelper

View helper which is needed to get details about logged in user in view scripts

Summary

Methods
Properties
Constants
__construct()
userIsAllowed()
No public properties found
No constants found
No protected methods found
$accessControleList
N/A
No private methods found
No private properties found
N/A

Properties

$accessControleList

$accessControleList : \AclUser\Permissions\Acl\AccessControlList

AccessControlList Object which is needed to get details about logged in user

Type

\AclUser\Permissions\Acl\AccessControlList

Methods

userIsAllowed()

userIsAllowed(string  $resource, string  $privilege) : boolean

Check whether current user is allowed to access this resource and privilege

Parameters

string $resource
string $privilege

Returns

boolean —

whether user is permitted to access this route