Changed api key verifying to client instead of server

This commit is contained in:
Mario de Frutos
2015-11-24 12:25:43 +01:00
parent db72df95bf
commit 2b141452b4
12 changed files with 21 additions and 73 deletions

View File

@@ -6,11 +6,6 @@ RETURNS Geometry AS $$
plpy.debug('Entering geocode_admin1_polygon(admin1_name text)')
plpy.debug('user_id = %s' % user_id)
#-- Access control
#-- TODO: this should be part of cdb python library
if user_id == 'publicuser':
plpy.error('The api_key must be provided')
#--TODO: rate limiting check
#--TODO: quota check
@@ -28,11 +23,6 @@ RETURNS Geometry AS $$
plpy.debug('Entering geocode_admin1_polygon(admin1_name text, country_name text)')
plpy.debug('user_id = %s' % user_id)
#-- Access control
#-- TODO: this should be part of cdb python library
if user_id == 'publicuser':
plpy.error('The api_key must be provided')
#--TODO: rate limiting check
#--TODO: quota check