static AccessType Access_( identifierName keyname )
//return permissions from security keys
{
    DictSecurityKey         key;
    AccessType              result = AccessType::NoAccess;
    securityKeyId           keyId;

    keyId = global::SecurityKeyName2Id( keyName );

    if (keyId)
    {
        key = new DictSecurityKey( keyId );
        result = key.rights();
    }

    return result;
}



--- In development-axapta@yahoogroups.com, "shamika" <shamik...@...> wrote:
>
> Hello,
> 
> I wanted to check security key access of logged-in user.
> Lets say, userId is dev11. Then I want to check whether dev11 has full access 
> for security key, say "VendKey" (which is maintained in some table as a 
> parameter). 
> Does anybody have an idea about how to do the same?
> Please let me know.
> 
> Thanks in advance,
> 
> Sam
>


Reply via email to