static void findAllThePrivilegeForSpecificMenuItem(Args _args)
{
SecurityTask securityTask;
SecuritySubTask securitySubTask;
SecurityTaskEntryPoint securityTaskEntryPoint;
SecurableObject securableObject;
{
SecurityTask securityTask;
SecuritySubTask securitySubTask;
SecurityTaskEntryPoint securityTaskEntryPoint;
SecurableObject securableObject;
while select * from SecurityTaskEntryPoint
join SecurableObject
where SecurableObject.RecId == SecurityTaskEntryPoint.EntryPoint
&& SecurableObject.Name == menuitemdisplayStr(SalesTable) // your menu item
{
join SecurableObject
where SecurableObject.RecId == SecurityTaskEntryPoint.EntryPoint
&& SecurableObject.Name == menuitemdisplayStr(SalesTable) // your menu item
{
while select * from securityTask
where securityTask.RecId == SecurityTaskEntryPoint.SecurityTask
{
info(strFmt(“%1,%2,%3,%4″, securityTask.AOTNAME, securityTask.Name, securityTask.Type, SecurityTaskEntryPoint.PermissionGroup));
}
}
}
No comments:
Post a Comment