Added the organization public user to the api key check

This commit is contained in:
Mario de Frutos
2015-11-27 13:20:55 +01:00
parent dda83c0976
commit 06f033b72a
16 changed files with 16 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ DECLARE
user_config json;
geocoder_config json;
BEGIN
IF session_user = 'publicuser' THEN
IF session_user = 'publicuser' OR session_user ~ 'cartodb_publicuser_*' THEN
RAISE EXCEPTION 'The api_key must be provided';
END IF;
SELECT cartodb.CDB_Conf_GetConf('<%= user_config_key %>') INTO user_config;