[auth.ticket.in-role]
auth.ticket.in-role is a slot in the auth namespace, in Hyperlambda, the language of Magic Cloud. Returns true if the current ticket belongs to one of the specified roles.
- Value (
role), required: Comma-separated roles to test for - Returns: Returns true if the current ticket belongs to at least one of the comma-separated roles
Guide: How to use [auth.ticket.in-role]
JSON declaration
This is the complete declaration of auth.ticket.in-role, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "auth.ticket.in-role",
"description": "Returns true if the current ticket belongs to one of the specified roles",
"signature": {
"input": {
"kind": "role",
"description": "Comma-separated roles to test for",
"required": true,
"mode": "ValueOrExpression"
},
"output": {
"mode": "Value",
"kind": "boolean",
"description": "Returns true if the current ticket belongs to at least one of the comma-separated roles"
}
}
}
← auth.ticket.get |
all auth.* slots |
auth.ticket.refresh → |