PswBlock
PswBlock(cId)Analyzes a community user-blocking call.
Overview
Robert Koch’s BatBlUsr selects ID order, performs PswSeek and reads PswRet before calling PswBlock with an ID when its rule requests a block. This is a concrete call, not a complete current contract. It depends on ClsSQL, ClsAviso, logging helpers and private schemas, so it is not standalone. Its history even records a parameter correction. Organization data, personnel rules and array indexes are not reproduced as an API contract. (Sources: refs. 1–1.)
Syntax
PswBlock(cId)Return value
Unconfirmed; the observed caller discards it.
Commented example
#Include "Protheus.ch"
User Function Ed601()
// Call analysis; do not execute a block in this exercise.
Local bBlock := {|cId| PswBlock(cId)}
ConOut(ValType(bBlock))
Return NilOnly builds a block. No user is blocked. API return is unconfirmed. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Confirm permissions, auditing, SSO and an unblock procedure before acceptance testing. This example alone is insufficient for production.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.