Search
Preparing search index...
The search index is not available
sealious
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
gSameAsForResourceInField
Class gSameAsForResourceInField
Hierarchy
Policy
gSameAsForResourceInField
Index
Constructors
constructor
Properties
current_
collection
field
item_
sensitive
params
type_
name
Methods
_get
Restricting
Query
check
checker
Function
get
Collection
get
Referenced
Collection
get
Referenced
Policy
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Constructors
constructor
new g
Same
AsFor
Resource
InField
(
__namedParameters
:
{
action_name
:
"show"
|
"create"
|
"edit"
|
"replace"
|
"delete"
;
collection_name
:
string
;
field
:
string
}
)
:
gSameAsForResourceInField
Parameters
__namedParameters:
{
action_name
:
"show"
|
"create"
|
"edit"
|
"replace"
|
"delete"
;
collection_name
:
string
;
field
:
string
}
action_
name
:
"show"
|
"create"
|
"edit"
|
"replace"
|
"delete"
collection_
name
:
string
field
:
string
Returns
gSameAsForResourceInField
Properties
current_
collection
current_
collection
:
string
field
field
:
string
item_
sensitive
item_
sensitive
:
true
params
params
:
any
Static
type_
name
type_
name
:
string
= "same-as-for-resource-in-field"
Methods
_get
Restricting
Query
_get
Restricting
Query
(
context
:
Context
)
:
Promise
<
Query
>
Parameters
context:
Context
Returns
Promise
<
Query
>
check
check
(
context
:
Context
, sealious_response
?:
SealiousResponse
)
:
Promise
<
PolicyDecision
|
null
>
Parameters
context:
Context
Optional
sealious_response:
SealiousResponse
Returns
Promise
<
PolicyDecision
|
null
>
checker
Function
checker
Function
(
context
:
Context
, response
:
SingleItemResponse
)
:
Promise
<
null
|
{
allowed
:
boolean
;
reason
:
string
}
>
Parameters
context:
Context
response:
SingleItemResponse
Returns
Promise
<
null
|
{
allowed
:
boolean
;
reason
:
string
}
>
get
Collection
get
Collection
(
app
:
App
)
:
Collection
Parameters
app:
App
Returns
Collection
get
Referenced
Collection
get
Referenced
Collection
(
app
:
App
)
:
Collection
Parameters
app:
App
Returns
Collection
get
Referenced
Policy
get
Referenced
Policy
(
app
:
App
)
:
Policy
Parameters
app:
App
Returns
Policy
get
Restricting
Query
get
Restricting
Query
(
context
:
Context
)
:
Promise
<
Query
>
Parameters
context:
Context
Returns
Promise
<
Query
>
is
Item
Sensitive
is
Item
Sensitive
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Static
allow
allow
(
reason
:
string
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
reason:
string
Returns
{
allowed
:
boolean
;
reason
:
string
}
allowed
:
boolean
reason
:
string
Static
deny
deny
(
reason
:
string
)
:
{
allowed
:
boolean
;
reason
:
string
}
Parameters
reason:
string
Returns
{
allowed
:
boolean
;
reason
:
string
}
allowed
:
boolean
reason
:
string
Static
from
Definition
from
Definition
(
definition
:
PolicyDefinition
)
:
Policy
Parameters
definition:
PolicyDefinition
Returns
Policy
Globals
g
Same
AsFor
Resource
InField
constructor
current_
collection
field
item_
sensitive
params
type_
name
_get
Restricting
Query
check
checker
Function
get
Collection
get
Referenced
Collection
get
Referenced
Policy
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Generated using
TypeDoc