{"action":"created","issue":{"url":"https://api.github.com/repos/apinf/platform/issues/1844","repository_url":"https://api.github.com/repos/apinf/platform","labels_url":"https://api.github.com/repos/apinf/platform/issues/1844/labels{/name}","comments_url":"https://api.github.com/repos/apinf/platform/issues/1844/comments","events_url":"https://api.github.com/repos/apinf/platform/issues/1844/events","html_url":"https://github.com/apinf/platform/pull/1844","id":185939079,"number":1844,"title":"Hotfix/only admin permission","user":{"login":"marla-singer","id":20643403,"avatar_url":"https://avatars.githubusercontent.com/u/20643403?v=3","gravatar_id":"","url":"https://api.github.com/users/marla-singer","html_url":"https://github.com/marla-singer","followers_url":"https://api.github.com/users/marla-singer/followers","following_url":"https://api.github.com/users/marla-singer/following{/other_user}","gists_url":"https://api.github.com/users/marla-singer/gists{/gist_id}","starred_url":"https://api.github.com/users/marla-singer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marla-singer/subscriptions","organizations_url":"https://api.github.com/users/marla-singer/orgs","repos_url":"https://api.github.com/users/marla-singer/repos","events_url":"https://api.github.com/users/marla-singer/events{/privacy}","received_events_url":"https://api.github.com/users/marla-singer/received_events","type":"User","site_admin":false},"labels":[{"id":197954013,"url":"https://api.github.com/repos/apinf/platform/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":430855202,"url":"https://api.github.com/repos/apinf/platform/labels/Ready%20for%20review","name":"Ready for review","color":"FF7733","default":false}],"state":"open","locked":false,"assignee":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"assignees":[{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/apinf/platform/milestones/34","html_url":"https://github.com/apinf/platform/milestones/Sprint%2034","labels_url":"https://api.github.com/repos/apinf/platform/milestones/34/labels","id":2082273,"number":34,"title":"Sprint 34","description":"APInf Sprint 34: 24 Oct - 4 Nov 2016","creator":{"login":"bajiat","id":11626388,"avatar_url":"https://avatars.githubusercontent.com/u/11626388?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiat","html_url":"https://github.com/bajiat","followers_url":"https://api.github.com/users/bajiat/followers","following_url":"https://api.github.com/users/bajiat/following{/other_user}","gists_url":"https://api.github.com/users/bajiat/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiat/subscriptions","organizations_url":"https://api.github.com/users/bajiat/orgs","repos_url":"https://api.github.com/users/bajiat/repos","events_url":"https://api.github.com/users/bajiat/events{/privacy}","received_events_url":"https://api.github.com/users/bajiat/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":33,"state":"open","created_at":"2016-10-20T11:13:33Z","updated_at":"2016-10-31T12:12:12Z","due_on":"2016-11-04T00:00:00Z","closed_at":null},"comments":7,"created_at":"2016-10-28T14:35:08Z","updated_at":"2016-11-01T09:25:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apinf/platform/pulls/1844","html_url":"https://github.com/apinf/platform/pull/1844","diff_url":"https://github.com/apinf/platform/pull/1844.diff","patch_url":"https://github.com/apinf/platform/pull/1844.patch"},"body":"Closes #1835\n"},"comment":{"url":"https://api.github.com/repos/apinf/platform/issues/comments/257522191","html_url":"https://github.com/apinf/platform/pull/1844#issuecomment-257522191","issue_url":"https://api.github.com/repos/apinf/platform/issues/1844","id":257522191,"user":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T09:25:02Z","updated_at":"2016-11-01T09:25:02Z","body":"@marla-singer The first that can happen there is that settings were not set for current user. To resolve this we can create an empty settings document when user is created.\r\n\r\nSecond error is `onlyAdminsCanAddApis` value not being available since it was not set. To bypass this we can give default value to it when Settings document is created. In [this file](https://github.com/apinf/platform/blob/develop/settings/collection/schema.js) changing this part\r\n\r\n```js\r\n'access.onlyAdminsCanAddApis': {\r\n    type: Boolean,\r\n    optional: true,\r\n    label: TAPi18n.__('settings_schema_onlyAdminsCanAddApis'),\r\n},\r\n```\r\n\r\nto this\r\n\r\n```js\r\n'access.onlyAdminsCanAddApis': {\r\n    type: Boolean,\r\n    label: TAPi18n.__('settings_schema_onlyAdminsCanAddApis'),\r\n    autoValue: function () {\r\n      // Allow everyone to add APIs by default\r\n      return false;\r\n    }\r\n},\r\n``` "}}
{"actor":{"display_login":"frenchbread"}}