Table of Content
HAL Forum
function boolean UserCanAction (
string actiontype,boolean defaultact)
Description:
returns true if specified action is allowed for current user in Access Groups
Parameters:
actiontype Action type
defaultact 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:
««