Updated exception safe private functions

This commit is contained in:
antoniocarlon 2018-09-06 10:06:33 +02:00
parent 17dc3ad1c7
commit 393da56964

View File

@ -10,6 +10,8 @@ DECLARE
_returned_sqlstate TEXT;
_message_text TEXT;
_pg_exception_context TEXT;
<% unless superuser_function? -%>appname text;
apikey_permissions json;<% end %>
BEGIN
IF session_user = 'publicuser' OR session_user ~ 'cartodb_publicuser_*' THEN
RAISE EXCEPTION 'The api_key must be provided';