diff --git a/pgrest/utils.py b/pgrest/utils.py index 41ee8c9..058e789 100644 --- a/pgrest/utils.py +++ b/pgrest/utils.py @@ -209,6 +209,10 @@ def create_roles(tenants=[]): roleTenant=tn, description='Role granting read access to all tables in the PgREST API.', _tapis_set_x_headers_from_service=True) + t.sk.createRole(roleName='PGREST_USER', + roleTenant=tn, + description='Role granting read access to all /view/ endpoints in the PgREST API.', + _tapis_set_x_headers_from_service=True) t.sk.createRole(roleName='PGREST_WRITE', roleTenant=tn, description='Role granting write access to all tables in the PgREST API.', diff --git a/requirements.txt b/requirements.txt index bc9db38..17d7f7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,8 @@ psycopg2==2.8.6 cerberus postgres docker -tapipy==1.2.20 -tapisservice==1.2.6 +tapipy==1.4.1 +tapisservice==1.4.0 uWSGI ipython jedi==0.17.2 # was required to get past issues with ipython in the manage.py shell; see: \ No newline at end of file