<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged disablesecurity</title>
<link>https://overflow.efficy.io/?qa=tag/disablesecurity</link>
<description>Powered by Question2Answer</description>
<item>
<title>disableSecurity inefficient when called via node request</title>
<link>https://overflow.efficy.io/?qa=5944/disablesecurity-inefficient-when-called-via-node-request</link>
<description>&lt;p&gt;When some code called via a node request tries do disable the security,&lt;br&gt;
it's INEFFICIENT ! (Efficy 11.2)&lt;br&gt;
I implemented a minimum node file to demonstrate it, where I try to open an edit context on a record for which the user linked to the API key has no right:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function main() {
    Efficy.disableSecurity = true;
    try {
        try {
            var editHandle = Efficy.openEditContext(ntDocu, 828855);
            try {
                Response.setContent(&quot;I did open my record!&quot;);
                Response.setStatusCode(200); // HTTP_OK
            }
            finally {
                Efficy.closeContext(editHandle);
            }
        } catch (e) {
            Response.setStatusCode(400); // HTTP_BADREQUEST
            Response.setContent(&quot;Efficy.disableSecurity = &quot; + Efficy.disableSecurity + &quot; but...\n&quot; + e.message);
        }
    }
    finally {
        Efficy.disableSecurity = false;
    }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And the response is : &lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=18103778925339841033&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
This works as designed or did I miss something?&lt;br&gt;
This is the same of each Efficy property?&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5944/disablesecurity-inefficient-when-called-via-node-request</guid>
<pubDate>Wed, 03 Mar 2021 16:34:51 +0000</pubDate>
</item>
</channel>
</rss>