def datastore_search_sql(next_auth, context, data_dict): '''need access to view all tables in query''' for name in context['table_names']: name_auth = auth_datastore_core.datastore_auth( dict(context), # required because check_access mutates context {'id': name}, 'resource_download') if not name_auth['success']: return { 'success': False, 'msg': 'Not authorized to read resource.' } return next_auth(context, data_dict)
def datapusher_status(context, data_dict): return auth.datastore_auth(context, data_dict)
def datastore_search(next_auth, context, data_dict): parent_auth = auth_datastore_core.datastore_auth(context, data_dict, 'resource_download') if not parent_auth['success']: return parent_auth return next_auth(context, data_dict)
def xloader_status(context, data_dict): return auth.datastore_auth(context, data_dict)
def datapusher_submit(context, data_dict): return auth.datastore_auth(context, data_dict)
def xloader_submit(context, data_dict): return auth.datastore_auth(context, data_dict)
def shift_status(context, data_dict): return auth.datastore_auth(context, data_dict)
def shift_submit(context, data_dict): return auth.datastore_auth(context, data_dict)
def unhcr_datastore_search(context, data_dict): return auth_datastore_core.datastore_auth(context, data_dict, 'resource_download')
def datapusher_submit(context: Context, data_dict: dict[str, Any]) -> AuthResult: return auth.datastore_auth(context, data_dict)