Add security definer to connect redis function too

This commit is contained in:
Mario de Frutos
2016-01-26 13:15:15 +01:00
parent 2409d548b6
commit 343bcf539a
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ RETURNS boolean AS $$
'redis_metrics_connection': redis_metrics_connection,
}
return True
$$ LANGUAGE plpythonu;
$$ LANGUAGE plpythonu SECURITY DEFINER;
-- Get the Redis configuration from the _conf table --
CREATE OR REPLACE FUNCTION cdb_geocoder_server._get_geocoder_config(username text, orgname text)

View File

@@ -54,4 +54,4 @@ RETURNS boolean AS $$
'redis_metrics_connection': redis_metrics_connection,
}
return True
$$ LANGUAGE plpythonu;
$$ LANGUAGE plpythonu SECURITY DEFINER;