From 5e54d1bcc21c1d241ab1bad32427249000d7f852 Mon Sep 17 00:00:00 2001 From: Gabriel Shekler <46564521+gs202@users.noreply.github.com> Date: Fri, 29 Nov 2019 14:10:59 +0200 Subject: [PATCH] Fix error due to new permissions check (#114) * pass permissions parameter during connection check * fix browse permissions --- pytest_jira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_jira.py b/pytest_jira.py index 5f9213e..f24a187 100644 --- a/pytest_jira.py +++ b/pytest_jira.py @@ -220,7 +220,7 @@ def check_connection(self): ) # If the user does not have sufficient permissions to browse issues - elif not r.json()['permissions']['BROWSE']['havePermission']: + elif not r.json()['permissions']['BROWSE_PROJECTS']['havePermission']: raise Exception('Current user does not have sufficient permissions' ' to view issue') else: