title: SuiteScript 2.0 Retrieve a Role's Permission Level for a specific Custom Record
body: <p>Within an SS2.0 BeforeLoad script, I'm trying to retrieve the current user/role permission level for a specific record.</p>
  
  <p>The custom record name is <code>customrecord_payments</code> with an internal id of 368.</p>
  
  <p>Using the following:</p>
  
  <pre><code>var permission = runtime.getCurrentUser().getPermission({name:'LIST_CUSTRECORDENTRY368'})
  </code></pre>
  
  <p>Always returns a value of 4 ("FULL") regardless of the user role logged in, so the code above cannot be correct.</p>
  
  <p>What is the correct "permission" to look up?</p>