0
我想準備非常快速的「用戶組權限」,但這是非常困難的例如,如果我想爲管理 - >位置視圖添加訪問權限,則此軟件僅授予父級權限但不適用於此父級中的所有節點。我該怎麼辦才能解決這個問題?Dynamics AX 2009「用戶組權限」
如果我會點擊維度集,我需要做的權限在這個父所有的孩子。你知道我必須做什麼嗎?
public void MCOVgrantFullAccess(SecurityKeySet _startSecurityKeySet = null)
{
//klasa systemowa dictionary http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
Dictionary dictionary = new Dictionary();
DictSecurityKey dictSecurityKey;
int i;
if (_startSecurityKeySet)
securitySet = _startSecurityKeySet;
else
securitySet = SysSecurity::constructSecurityKeySet();
// securityKeyCnt() An integer that indicates the number of security keys. http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
// i = 365
for (i=dictionary.securityKeyCnt(); i; i--)
{
dictSecurityKey = new DictSecurityKey(dictionary.securityKeyCnt2Id(1));
if (!dictSecurityKey.parentSecurityKeyId())
{
securitySet.access(dictSecurityKey.id(), AccessType::Delete);
}
}
SysSecurityFormSetup::delete(userGroupId, domainId); //Delete setup of form controls
formSetupMap = new Map(Types::String, Types::Class); //Clear cache
}