Neemias — API Reference
Preparing search index...
packages/permissions
resolveScope
Function resolveScope
resolveScope
(
roles
:
(
|
"ADMIN"
|
"CHAMADOR"
|
"RELATORIOS"
|
"CADASTRO"
|
"RESPONSAVEL"
|
"VOLUNTARIO"
|
"COORDENACAO_KIDS"
|
"ADMINISTRATIVO_KIDS"
)
[]
,
userId
:
string
,
)
:
ScopeFilter
Resolve scope for multi-role user. Combines scopes via union:
If any role has "all" scope → result is "all"
If all roles resolve to same type → return that single scope
Otherwise → compound { type: "multi", filters: [...] }
Parameters
roles
: (
|
"ADMIN"
|
"CHAMADOR"
|
"RELATORIOS"
|
"CADASTRO"
|
"RESPONSAVEL"
|
"VOLUNTARIO"
|
"COORDENACAO_KIDS"
|
"ADMINISTRATIVO_KIDS"
)
[]
userId
:
string
Returns
ScopeFilter
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Neemias — API Reference
Loading...
Resolve scope for multi-role user. Combines scopes via union: