Class ::nsmcp::Authorizer (public)

 ::nx::Class ::nsmcp::Authorizer[i]

Defined in /usr/local/ns/tcl/nsmcp/lib/security.tcl

Testcases:
No testcase defined.
Source code:
    :public method allowed {context permission} {
        return [expr {$permission in [$context permissions] &&
                      [$context server] in [$context targets]}]
    }
    :public method require {context permission} {
        if {![:allowed $context $permission]} {
            return -code error -errorcode {NSMCP RPC -32602} "Operation not permitted"
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: