( |
|
|
|||
returns true if specified action is allowed for current user in Access Groups |
Parameters: | |
Action type | |
true - if action is allowed by default, false - not | |
global function LongInt PUVcRecordInvalidateTest(var record PUVc PUr,record PUVc PU2r,LongInt long3,LongInt long4) begin LongInt res; res = 0; if (UserCanAction("PUInvalid",true)) then begin if ((PUr.Invalid==0) and (PUr.OKFlag!=0)) then begin // invalidating here end; end; PUVcRecordInvalidateTest = res; return; end;
Related topics: |