Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Webiny
Component
Rest
Interfaces
AccessInterface
PHP Interface Webiny\Component\Rest\Interfaces\AccessInterface
Show file
Open project: Webiny/Framework
Public Methods
Method
Description
hasAccess
(
string
$role
) :
boolean
This method will be call if the api class, or the method, requires a specific role to access.
Method Details
hasAccess()
public
method
This method will be call if the api class, or the method, requires a specific role to access.
public
hasAccess
(
string
$role
) :
boolean
$role
string
Name of the role specified in "rest.role" annotation.
return
boolean
Boolean true should be returned if access is allowed, otherwise false should be returned.