{"action":"opened","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/4073","repository_url":"https://api.github.com/repos/mattermost/platform","labels_url":"https://api.github.com/repos/mattermost/platform/issues/4073/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/4073/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/4073/events","html_url":"https://github.com/mattermost/platform/issues/4073","id":178645182,"number":4073,"title":"TeamMember.IsTeamAdmin implementation return always true!","user":{"login":"loic-fejoz","id":910144,"avatar_url":"https://avatars.githubusercontent.com/u/910144?v=3","gravatar_id":"","url":"https://api.github.com/users/loic-fejoz","html_url":"https://github.com/loic-fejoz","followers_url":"https://api.github.com/users/loic-fejoz/followers","following_url":"https://api.github.com/users/loic-fejoz/following{/other_user}","gists_url":"https://api.github.com/users/loic-fejoz/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-fejoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-fejoz/subscriptions","organizations_url":"https://api.github.com/users/loic-fejoz/orgs","repos_url":"https://api.github.com/users/loic-fejoz/repos","events_url":"https://api.github.com/users/loic-fejoz/events{/privacy}","received_events_url":"https://api.github.com/users/loic-fejoz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T15:40:14Z","updated_at":"2016-09-22T15:40:14Z","closed_at":null,"body":"#### Summary\r\nGolang API does not implement TeamMember.IsTeamAdmin().\r\n\r\n#### Steps to reproduce\r\nRead line 72 of model/team_member.go\r\n\r\n#### Expected behavior\r\nReturn true only if field Roles contains the admin role.\r\n\r\n#### Observed behavior\r\nObvious\r\n\r\n#### Possible fixes\r\nThe patch in attachment. It was almost there!\r\nNB: it does not work if blank are allowed in name of roles.\r\n[0001-Implements-Team_Member.IsTeamAdmin.patch](https://github.com/mattermost/platform/files/487689/0001-Implements-Team_Member.IsTeamAdmin.patch.txt)\r\n\r\n\r\n"}}
{"actor":{"display_login":"loic-fejoz"}}