Added security definer permission to the sql part too
This commit is contained in:
@@ -54,4 +54,4 @@ RETURNS boolean AS $$
|
|||||||
'redis_metrics_connection': redis_metrics_connection,
|
'redis_metrics_connection': redis_metrics_connection,
|
||||||
}
|
}
|
||||||
return True
|
return True
|
||||||
$$ LANGUAGE plpythonu;
|
$$ LANGUAGE plpythonu SECURITY DEFINER;
|
||||||
|
|||||||
@@ -22,4 +22,4 @@ RETURNS boolean AS $$
|
|||||||
# --for this user session but...
|
# --for this user session but...
|
||||||
GD[cache_key] = geocoder_config
|
GD[cache_key] = geocoder_config
|
||||||
return True
|
return True
|
||||||
$$ LANGUAGE plpythonu;
|
$$ LANGUAGE plpythonu SECURITY DEFINER;
|
||||||
|
|||||||
Reference in New Issue
Block a user