{"action":"closed","issue":{"url":"https://api.github.com/repos/LearnersGuild/idm/issues/186","repository_url":"https://api.github.com/repos/LearnersGuild/idm","labels_url":"https://api.github.com/repos/LearnersGuild/idm/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/LearnersGuild/idm/issues/186/comments","events_url":"https://api.github.com/repos/LearnersGuild/idm/issues/186/events","html_url":"https://github.com/LearnersGuild/idm/issues/186","id":245850792,"number":186,"title":"Fix authorization for `createInviteCode` graphql mutation","user":{"login":"prattsj","id":1890882,"avatar_url":"https://avatars2.githubusercontent.com/u/1890882?v=4","gravatar_id":"","url":"https://api.github.com/users/prattsj","html_url":"https://github.com/prattsj","followers_url":"https://api.github.com/users/prattsj/followers","following_url":"https://api.github.com/users/prattsj/following{/other_user}","gists_url":"https://api.github.com/users/prattsj/gists{/gist_id}","starred_url":"https://api.github.com/users/prattsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prattsj/subscriptions","organizations_url":"https://api.github.com/users/prattsj/orgs","repos_url":"https://api.github.com/users/prattsj/repos","events_url":"https://api.github.com/users/prattsj/events{/privacy}","received_events_url":"https://api.github.com/users/prattsj/received_events","type":"User","site_admin":false},"labels":[{"id":279328710,"url":"https://api.github.com/repos/LearnersGuild/idm/labels/bug","name":"bug","color":"ff0000","default":true}],"state":"closed","locked":false,"assignee":{"login":"sdweber422","id":11862202,"avatar_url":"https://avatars1.githubusercontent.com/u/11862202?v=4","gravatar_id":"","url":"https://api.github.com/users/sdweber422","html_url":"https://github.com/sdweber422","followers_url":"https://api.github.com/users/sdweber422/followers","following_url":"https://api.github.com/users/sdweber422/following{/other_user}","gists_url":"https://api.github.com/users/sdweber422/gists{/gist_id}","starred_url":"https://api.github.com/users/sdweber422/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdweber422/subscriptions","organizations_url":"https://api.github.com/users/sdweber422/orgs","repos_url":"https://api.github.com/users/sdweber422/repos","events_url":"https://api.github.com/users/sdweber422/events{/privacy}","received_events_url":"https://api.github.com/users/sdweber422/received_events","type":"User","site_admin":false},"assignees":[{"login":"sdweber422","id":11862202,"avatar_url":"https://avatars1.githubusercontent.com/u/11862202?v=4","gravatar_id":"","url":"https://api.github.com/users/sdweber422","html_url":"https://github.com/sdweber422","followers_url":"https://api.github.com/users/sdweber422/followers","following_url":"https://api.github.com/users/sdweber422/following{/other_user}","gists_url":"https://api.github.com/users/sdweber422/gists{/gist_id}","starred_url":"https://api.github.com/users/sdweber422/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdweber422/subscriptions","organizations_url":"https://api.github.com/users/sdweber422/orgs","repos_url":"https://api.github.com/users/sdweber422/repos","events_url":"https://api.github.com/users/sdweber422/events{/privacy}","received_events_url":"https://api.github.com/users/sdweber422/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-07-26T20:52:07Z","updated_at":"2017-07-27T19:21:52Z","closed_at":"2017-07-27T19:21:52Z","body":"The `idm` service (for now) has role-based authorization rather than permission-based auth (as with the `echo` service). Roles were recently revamped for `idm` users, and one of the old roles, `backoffice`, was eliminated -- or so I thought. I'd missed a place in the repo where we specifically require users to have the `backoffice` role in order to create an invitation code. In the short term, we need to fix this to require that users have the `admin` role instead.\r\n\r\nLonger term, we'll [switch to permission-based authorization](https://github.com/LearnersGuild/idm/issues/185), which should prevent this specific error from being made again.\r\n\r\n---\r\n\r\nRelated: https://github.com/LearnersGuild/echo/issues/986.\r\nRelated: https://github.com/LearnersGuild/idm/pull/166."}}
{"actor":{"display_login":"prattsj"}}