Hotfix: Other method that need security definer

This commit is contained in:
Mario de Frutos
2016-02-04 11:03:38 +01:00
parent 8176eee356
commit 7a0b927acd

View File

@@ -22,7 +22,7 @@ RETURNS boolean AS $$
# --for this user session but...
GD[cache_key] = geocoder_config
return True
$$ LANGUAGE plpythonu;
$$ LANGUAGE plpythonu SECURITY DEFINER;
-- Get the connection to redis from cache or create a new one
CREATE OR REPLACE FUNCTION cdb_geocoder_server._connect_to_redis(user_id text)