|
IPTSession
ptSession = (IPTSession) _oUserSession;
IApplication
app = appData.GetApplication();
XMLBaseVarPack
varPack;
varPack
= app.GetVarPackManager().GetVariablePackage(HelloWorldVarPack.VARPACK_ID);
int nFolderID
= varPack.GetValueAsInt("HelloWorldData", "HelloWorldFolderID");
if (ptSession.GetSessionInfo().GetCurrentUserAdminFolderID()
== nFolderID)
{
// Custom login code.
} |