diff --git a/seahub/repo_metadata/metadata_server_api.py b/seahub/repo_metadata/metadata_server_api.py index 1be75ffefc..d5af0c6763 100644 --- a/seahub/repo_metadata/metadata_server_api.py +++ b/seahub/repo_metadata/metadata_server_api.py @@ -46,7 +46,7 @@ def list_metadata_view_records(repo_id, user, view, start=0, limit=1000): from seafevents.repo_metadata.utils import METADATA_TABLE, gen_view_data_sql metadata_server_api = MetadataServerAPI(repo_id, user) columns = metadata_server_api.list_columns(METADATA_TABLE.id).get('columns') - sql = gen_view_data_sql(METADATA_TABLE, columns, view, start, limit) + sql = gen_view_data_sql(METADATA_TABLE, columns, view, start, limit, user) response_results = metadata_server_api.query_rows(sql, []) return response_results