nsmcp::questionRestrict (private)
nsmcp::questionRestrict context [ pins ] [ restricted ]
Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl
Apply question credential and pin restrictions to a tool context. @return Restricted context.
- Parameters:
- context (required)
- pins (optional)
- restricted (optional, defaults to
"false")- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set allowed [::nsmcp::questionPermissions] if {[$context targets] ne [list [$context server]]} { error "Question credential must target only this virtual server" } foreach permission [$context permissions] { if {$permission ni $allowed} { error "Question credential exceeds questionAllowedPermissions; provision a dedicated diagnostic credential" } } if {$restricted} { $context configure -questionRestricted true -questionPins $pins } return $contextXQL Not present: Generic, PostgreSQL, Oracle