Skip to content

Commit

Permalink
Fixes #7298: rudder should automatically guess my redmine role
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Oct 27, 2015
1 parent 8de95ef commit e371c5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/rudder-dev/rudder-dev
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,12 @@ def can_modify_issues(project_id):
global REDMINE_CAN_MODIFY
if REDMINE_CAN_MODIFY is not None:
return REDMINE_CAN_MODIFY
<<<<<<< HEAD
data = requests.get(REDMINE_API_URL + "/users/current.json?include=memberships", headers = {'X-Redmine-API-Key': REDMINE_TOKEN } )
user = data.json()
=======
user = requests.get(REDMINE_API_URL + "/users/current.json?include=memberships", headers = {'X-Redmine-API-Key': REDMINE_TOKEN } )
>>>>>>> 31c71b6... Fixes #7298: rudder should automatically guess my redmine role
for membership in user['user']['memberships']:
if membership['project']['id'] == project_id:
for role in membership['roles']:
Expand Down

0 comments on commit e371c5e

Please sign in to comment.