{"action":"created","issue":{"url":"https://api.github.com/repos/mpociot/teamwork/issues/60","repository_url":"https://api.github.com/repos/mpociot/teamwork","labels_url":"https://api.github.com/repos/mpociot/teamwork/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/mpociot/teamwork/issues/60/comments","events_url":"https://api.github.com/repos/mpociot/teamwork/issues/60/events","html_url":"https://github.com/mpociot/teamwork/issues/60","id":184452695,"number":60,"title":"inTeam method for user","user":{"login":"lukasoppermann","id":813754,"avatar_url":"https://avatars.githubusercontent.com/u/813754?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasoppermann","html_url":"https://github.com/lukasoppermann","followers_url":"https://api.github.com/users/lukasoppermann/followers","following_url":"https://api.github.com/users/lukasoppermann/following{/other_user}","gists_url":"https://api.github.com/users/lukasoppermann/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasoppermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasoppermann/subscriptions","organizations_url":"https://api.github.com/users/lukasoppermann/orgs","repos_url":"https://api.github.com/users/lukasoppermann/repos","events_url":"https://api.github.com/users/lukasoppermann/events{/privacy}","received_events_url":"https://api.github.com/users/lukasoppermann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T10:29:11Z","updated_at":"2016-11-12T23:48:21Z","closed_at":null,"body":"Hey @mpociot,\nI think a method `inTeam($team)` or `isMemberOfTeam($team)` would be very useful for the `User` model.\n\nFor example when a user updates a something in a team and you want to check if the user is allowed to do this. It is basically used here: https://github.com/mpociot/teamwork/blob/master/src/Mpociot/Teamwork/Traits/UserHasTeams.php#L257\n\nIf you agree I would be willing to send a PR.\n"},"comment":{"url":"https://api.github.com/repos/mpociot/teamwork/issues/comments/260156411","html_url":"https://github.com/mpociot/teamwork/issues/60#issuecomment-260156411","issue_url":"https://api.github.com/repos/mpociot/teamwork/issues/60","id":260156411,"user":{"login":"mpociot","id":804684,"avatar_url":"https://avatars.githubusercontent.com/u/804684?v=3","gravatar_id":"","url":"https://api.github.com/users/mpociot","html_url":"https://github.com/mpociot","followers_url":"https://api.github.com/users/mpociot/followers","following_url":"https://api.github.com/users/mpociot/following{/other_user}","gists_url":"https://api.github.com/users/mpociot/gists{/gist_id}","starred_url":"https://api.github.com/users/mpociot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpociot/subscriptions","organizations_url":"https://api.github.com/users/mpociot/orgs","repos_url":"https://api.github.com/users/mpociot/repos","events_url":"https://api.github.com/users/mpociot/events{/privacy}","received_events_url":"https://api.github.com/users/mpociot/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T23:48:21Z","updated_at":"2016-11-12T23:48:21Z","body":"Sure - feel free to send a PR! :)"}}
{"actor":{"display_login":"mpociot"}}