scripts.get_access_level
scripts.get_access_level shows information about a script's access level. Possible access level indicators include:
- PUBLIC
- PRIVATE
- HIDDEN
- TRUST
For example, [[loc]]s will appear as PUBLIC HIDDEN. Trust scripts will appear as PUBLIC TRUST. Some scripts may appear as PUBLIC HIDDEN TRUST.
Security Level
FULLSEC
Syntax
CLI
scripts.get_access_level { name: "accts.balance" }
Script
#fs.scripts.get_access_level
Parameters
name (required)
The 'name' argument specifies which scripts' access level shall be checked.
Return
CLI
On the CLI scripts.get_access_level returns a string.
>>scripts.get_access_level { name: "accts.balance" }
PUBLIC TRUST
Script
Called as a subscript, scripts.get_access_level returns an object.
{
public: true,
hidden: false,
trust: true
}
Example
function(context, args)
{
return #fs.scripts.get_access_level({ name: "accts.balance" })
}