/user/acl

The acl module provides access to the ACL table for all User API methods.

The module will split either the PRIVATE or PUBLIC process.env variables as an array of connection strings.

The module will export null if neither a PRIVATE or PUBLIC process.env are provided.

Requires

  • module:pg

Methods

(inner) acl(q, arr)

The acl method will connect to pg pool and query the ACL with a provided query template. The /acl_table/ and /acl_schema/ in the query template will be replaced with values provided as PRIVATE or PUBLIC environment variable.

Parameters:
NameTypeDescription
qstring

Query template.

arrarray

Parameters to be substrituted in query template.