interface Authorizator

Authorizator checks if a given role has authorization to access a given resource.

Constants

All

Set type: all

Allow

Permission type: allow

Deny

Permission type: deny

deprecated ALL

deprecated ALLOW

deprecated DENY

Methods

bool
isAllowed(string|null $role, string|null $resource, string|null $privilege)

Performs a role-based authorization.

Details

at line 40
bool isAllowed(string|null $role, string|null $resource, string|null $privilege)

Performs a role-based authorization.

Parameters

string|null $role
string|null $resource
string|null $privilege

Return Value

bool