Commit 1f779928 authored by Christine Plumejeaud's avatar Christine Plumejeaud
Browse files

add grant select on ports.matching_port to api_user

parent c45f6dee
......@@ -692,6 +692,9 @@ class BuildPorts(object):
from matching_port where source1 = 'geo_general' and source2='geonames' and id1 = p.ogc_fid and best is true and geonameid is null"""
self.execute_sql(query)
self.execute_sql("grant select on ports.matching_port to api_user");
def updateStateGeonameid(self, config) :
"""
......@@ -1126,6 +1129,7 @@ if __name__ == '__main__':
#c.buildPortTable(config)
#c.useGeonames(config)
#c.computeMatching(config)
#c.updateRelationState(config)
#c.createReadOnlyUsers(config, 'porticapi', None)
#c.createReadOnlyUsers(config, 'api_user', 'portic')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment