def check_is_advsvc(context):
 init()
 credentials = context.to_policy_values()
 if (ADVSVC_CTX_POLICY not in _ENFORCER.rules):
  return False
 return _ENFORCER.enforce(ADVSVC_CTX_POLICY, credentials, credentials)

def check_is_advsvc ( context ) : init ( ) credentials = context . to_policy_values ( ) if ( ADVSVC_CTX_POLICY not in _ENFORCER . rules ) : return False return _ENFORCER . enforce ( ADVSVC_CTX_POLICY , credentials , credentials )
verify context has advsvc rights according to policy settings .