Skip to content

Commit

Permalink
Fix error due to new permissions check (#114)
Browse files Browse the repository at this point in the history
* pass permissions parameter during connection check

* fix browse permissions
  • Loading branch information
gs202 authored and lukas-bednar committed Nov 29, 2019
1 parent afd0e1d commit 5e54d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5e54d1b

Please sign in to comment.