我想准备非常快速的“用户群许可”, 但是这非常困难, 例如如果我想添加行政 - & gt; 位置视图的访问权限, 这个软件只允许父/ 父/ 父/ 父/ 父( 父/ 母), 而不是所有节点 。 我该怎么做来解决这个问题?
""https://i.sstatic.net/t6sxm.jpg" alt="此处输入图像描述"/ >
如果我要点击尺寸设置, 我需要允许这个父母的每个孩子。 你知道我必须做什么吗?
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
}