Skip to content

Commit

Permalink
Use full path for namespaced GitLab groups (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Jan 29, 2019
1 parent 78e6e06 commit f9f9cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerta/auth/gitlab.py
Expand Up @@ -55,7 +55,7 @@ def gitlab():
login = profile['username']

r = requests.get(gitlab_api_url + '/groups', headers=headers)
groups = [g['path'] for g in r.json()]
groups = [g['full_path'] for g in r.json()]
email_verified = True if profile.get('email', None) else False

if not_authorized('ALLOWED_GITLAB_GROUPS', groups):
Expand Down

0 comments on commit f9f9cbe

Please sign in to comment.