Sunday, August 9, 2009

Security key disabled, even for the Admin

When you import a new security key trough a XPO, this new key will be disabled even for the admin group. Since you can’t adjust the security setting for the admin group you can’t use the keys functionality.

There is a verry simple solution for this problem. Open the method \Forms\SysUserGroupSecurity\Methods\isAdmin and force this method to return false.

#admin
boolean isAdmin()
{
/* if (userGroupInfo.Id == #AdminUserGroup &&
(domainInfo.Id == #AdminDomain || !useDomains))
{
return true;
}*/
return false;
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...