{"action":"created","comment":{"url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/comments/68730967","id":68730967,"diff_hunk":"@@ -80,3 +80,28 @@ export function requestAttachment(\n       throw new Error(`Unable to ${method} attachment: ${message}`);\n     });\n }\n+\n+export function requestPermissions(): Promise {\n+  const client: KintoClient = getClient();\n+  if (!client) {\n+    throw new Error(\"Client is not configured.\");\n+  }\n+  const {remote, defaultReqOptions}: {\n+    remote: string,\n+    defaultReqOptions: {\n+      headers: Object\n+    }\n+  } = client;\n+  return fetch(`${remote}/permissions`, {","path":"scripts/client.js","position":16,"original_position":16,"commit_id":"8b0246df1c50c31f19b9bffcc5571f354337454b","original_commit_id":"8b0246df1c50c31f19b9bffcc5571f354337454b","user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"body":"Shouldn't we add that to kinto-http.js ?","created_at":"2016-06-28T10:12:17Z","updated_at":"2016-06-28T10:12:17Z","html_url":"https://github.com/Kinto/kinto-admin/pull/161#discussion_r68730967","pull_request_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161","_links":{"self":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/comments/68730967"},"html":{"href":"https://github.com/Kinto/kinto-admin/pull/161#discussion_r68730967"},"pull_request":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161"}}},"pull_request":{"url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161","id":75450374,"html_url":"https://github.com/Kinto/kinto-admin/pull/161","diff_url":"https://github.com/Kinto/kinto-admin/pull/161.diff","patch_url":"https://github.com/Kinto/kinto-admin/pull/161.patch","issue_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/161","number":161,"state":"open","locked":false,"title":"List resources a user has access to in the sidebar.","user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"body":"Paired with @magopian, refs https://github.com/Kinto/kinto/pull/653\r\n\r\nI didn't deploy to gh-pages because it'd need the feature to be installed on the dev server.\r\n\r\n/cc @leplatrem @Natim @glasserc ","created_at":"2016-06-28T10:03:54Z","updated_at":"2016-06-28T10:12:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08cc0dc9beb5e6767e41c09e4afbe191be2179fc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161/commits","review_comments_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161/comments","review_comment_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/161/comments","statuses_url":"https://api.github.com/repos/Kinto/kinto-admin/statuses/8b0246df1c50c31f19b9bffcc5571f354337454b","head":{"label":"Kinto:experiment-permissions-endpoint","ref":"experiment-permissions-endpoint","sha":"8b0246df1c50c31f19b9bffcc5571f354337454b","user":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"repo":{"id":47711273,"name":"kinto-admin","full_name":"Kinto/kinto-admin","owner":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinto/kinto-admin","description":"Kinto React Administration.","fork":false,"url":"https://api.github.com/repos/Kinto/kinto-admin","forks_url":"https://api.github.com/repos/Kinto/kinto-admin/forks","keys_url":"https://api.github.com/repos/Kinto/kinto-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinto/kinto-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinto/kinto-admin/teams","hooks_url":"https://api.github.com/repos/Kinto/kinto-admin/hooks","issue_events_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/events{/number}","events_url":"https://api.github.com/repos/Kinto/kinto-admin/events","assignees_url":"https://api.github.com/repos/Kinto/kinto-admin/assignees{/user}","branches_url":"https://api.github.com/repos/Kinto/kinto-admin/branches{/branch}","tags_url":"https://api.github.com/repos/Kinto/kinto-admin/tags","blobs_url":"https://api.github.com/repos/Kinto/kinto-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinto/kinto-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinto/kinto-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinto/kinto-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinto/kinto-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinto/kinto-admin/languages","stargazers_url":"https://api.github.com/repos/Kinto/kinto-admin/stargazers","contributors_url":"https://api.github.com/repos/Kinto/kinto-admin/contributors","subscribers_url":"https://api.github.com/repos/Kinto/kinto-admin/subscribers","subscription_url":"https://api.github.com/repos/Kinto/kinto-admin/subscription","commits_url":"https://api.github.com/repos/Kinto/kinto-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinto/kinto-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinto/kinto-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinto/kinto-admin/contents/{+path}","compare_url":"https://api.github.com/repos/Kinto/kinto-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinto/kinto-admin/merges","archive_url":"https://api.github.com/repos/Kinto/kinto-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinto/kinto-admin/downloads","issues_url":"https://api.github.com/repos/Kinto/kinto-admin/issues{/number}","pulls_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinto/kinto-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinto/kinto-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinto/kinto-admin/labels{/name}","releases_url":"https://api.github.com/repos/Kinto/kinto-admin/releases{/id}","deployments_url":"https://api.github.com/repos/Kinto/kinto-admin/deployments","created_at":"2015-12-09T18:41:15Z","updated_at":"2016-06-11T09:49:23Z","pushed_at":"2016-06-28T10:10:15Z","git_url":"git://github.com/Kinto/kinto-admin.git","ssh_url":"git@github.com:Kinto/kinto-admin.git","clone_url":"https://github.com/Kinto/kinto-admin.git","svn_url":"https://github.com/Kinto/kinto-admin","homepage":"http://kinto.github.io/kinto-admin/","size":3200,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":27,"forks":8,"open_issues":27,"watchers":41,"default_branch":"master"}},"base":{"label":"Kinto:master","ref":"master","sha":"658643f8540ed3981c151d5826d51923a8c46df5","user":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"repo":{"id":47711273,"name":"kinto-admin","full_name":"Kinto/kinto-admin","owner":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinto/kinto-admin","description":"Kinto React Administration.","fork":false,"url":"https://api.github.com/repos/Kinto/kinto-admin","forks_url":"https://api.github.com/repos/Kinto/kinto-admin/forks","keys_url":"https://api.github.com/repos/Kinto/kinto-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinto/kinto-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinto/kinto-admin/teams","hooks_url":"https://api.github.com/repos/Kinto/kinto-admin/hooks","issue_events_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/events{/number}","events_url":"https://api.github.com/repos/Kinto/kinto-admin/events","assignees_url":"https://api.github.com/repos/Kinto/kinto-admin/assignees{/user}","branches_url":"https://api.github.com/repos/Kinto/kinto-admin/branches{/branch}","tags_url":"https://api.github.com/repos/Kinto/kinto-admin/tags","blobs_url":"https://api.github.com/repos/Kinto/kinto-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinto/kinto-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinto/kinto-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinto/kinto-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinto/kinto-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinto/kinto-admin/languages","stargazers_url":"https://api.github.com/repos/Kinto/kinto-admin/stargazers","contributors_url":"https://api.github.com/repos/Kinto/kinto-admin/contributors","subscribers_url":"https://api.github.com/repos/Kinto/kinto-admin/subscribers","subscription_url":"https://api.github.com/repos/Kinto/kinto-admin/subscription","commits_url":"https://api.github.com/repos/Kinto/kinto-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinto/kinto-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinto/kinto-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinto/kinto-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinto/kinto-admin/contents/{+path}","compare_url":"https://api.github.com/repos/Kinto/kinto-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinto/kinto-admin/merges","archive_url":"https://api.github.com/repos/Kinto/kinto-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinto/kinto-admin/downloads","issues_url":"https://api.github.com/repos/Kinto/kinto-admin/issues{/number}","pulls_url":"https://api.github.com/repos/Kinto/kinto-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinto/kinto-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinto/kinto-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinto/kinto-admin/labels{/name}","releases_url":"https://api.github.com/repos/Kinto/kinto-admin/releases{/id}","deployments_url":"https://api.github.com/repos/Kinto/kinto-admin/deployments","created_at":"2015-12-09T18:41:15Z","updated_at":"2016-06-11T09:49:23Z","pushed_at":"2016-06-28T10:10:15Z","git_url":"git://github.com/Kinto/kinto-admin.git","ssh_url":"git@github.com:Kinto/kinto-admin.git","clone_url":"https://github.com/Kinto/kinto-admin.git","svn_url":"https://github.com/Kinto/kinto-admin","homepage":"http://kinto.github.io/kinto-admin/","size":3200,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":27,"forks":8,"open_issues":27,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161"},"html":{"href":"https://github.com/Kinto/kinto-admin/pull/161"},"issue":{"href":"https://api.github.com/repos/Kinto/kinto-admin/issues/161"},"comments":{"href":"https://api.github.com/repos/Kinto/kinto-admin/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kinto/kinto-admin/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/Kinto/kinto-admin/statuses/8b0246df1c50c31f19b9bffcc5571f354337454b"}}}}
{"actor":{"display_login":"Natim"}}