get permission of privilege by using tree node

static void lyc_20180320(Args _args)
{
    // get permissions
    #AOT
    Treenode  Privilege,Permissions, EP , controlObject;

    Privilege = TreeNode::findNode(#SecPrivilegesPath
    +"\\" + 'ProjTableMaintain'
    + "\\");

    Permissions= Privilege.AOTfirstChild().AOTnextSibling();


    EP = Permissions.AOTfirstChild();
    while(EP)
    {
        if(EP.AOTchildNodeCount() > 0 )
        {
            controlObject = EP.AOTfirstChild();
            while(controlObject)
            {
                controlObject = controlObject.AOTnextSibling();
            }
        }
        EP = EP.AOTnextSibling();
    }

}

你可能感兴趣的:(get permission of privilege by using tree node)