Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
CakeDC
Users
Auth
Rules
Rule
PHP Interface CakeDC\Users\Auth\Rules\Rule
ファイルを表示
Open project: CakeDC/users
Public Methods
Method
Description
allowed
(
array
$user
,
string
$role
,
Cake\Network\Request
$request
) :
boolean
Check the current entity is owned by the logged in user
Method Details
allowed()
public
method
Check the current entity is owned by the logged in user
public
allowed
(
array
$user
,
string
$role
,
Cake\Network\Request
$request
) :
boolean
$user
array
Auth array with the logged in data
$role
string
role of the user
$request
Cake\Network\Request
current request, used to get a default table if not provided
return
boolean