Search
Preparing search index...
The search index is not available
sealious
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
UsersWhoCan
Class UsersWhoCan
Hierarchy
Policy
UsersWhoCan
Index
Constructors
constructor
Properties
action_
name
params
target_
collection_
name
type_
name
Methods
_get
Restricting
Query
check
checker
Function
get
Policy
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Constructors
constructor
new
Users
Who
Can
(
__namedParameters
:
[
"show"
|
"create"
|
"edit"
|
"replace"
|
"delete"
,
string
]
)
:
UsersWhoCan
Parameters
__namedParameters:
[
"show"
|
"create"
|
"edit"
|
"replace"
|
"delete"
,
string
]
Returns
UsersWhoCan
Properties
action_
name
action_
name
:
ActionName
params
params
:
any
target_
collection_
name
target_
collection_
name
:
string
Static
type_
name
type_
name
:
string
= "users-who-can"
Methods
_get
Restricting
Query
_get
Restricting
Query
(
context
:
Context
)
:
Promise
<
AllowAll
|
DenyAll
>
Parameters
context:
Context
Returns
Promise
<
AllowAll
|
DenyAll
>
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
)
:
Promise
<
null
|
{
allowed
:
boolean
;
reason
:
string
}
>
Parameters
context:
Context
Returns
Promise
<
null
|
{
allowed
:
boolean
;
reason
:
string
}
>
get
Policy
get
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
Users
Who
Can
constructor
action_
name
params
target_
collection_
name
type_
name
_get
Restricting
Query
check
checker
Function
get
Policy
get
Restricting
Query
is
Item
Sensitive
allow
deny
from
Definition
Generated using
TypeDoc