{"action":"closed","number":881,"pull_request":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881","id":49108800,"html_url":"https://github.com/IMA-WorldHealth/bhima/pull/881","diff_url":"https://github.com/IMA-WorldHealth/bhima/pull/881.diff","patch_url":"https://github.com/IMA-WorldHealth/bhima/pull/881.patch","issue_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/881","number":881,"state":"closed","locked":false,"title":"FIX(login): prevent permissionless login","user":{"login":"jniles","id":896472,"avatar_url":"https://avatars.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"body":"Fixes #681.\r\n\r\nThis commit adds a check to ensure the user has permissions before login\r\ninto bhima. If the user does not have any permissions, we display an error\r\ntelling them to contact the system administrator.\r\n\r\n**Screenshot** (FR)\r\n![permissionlesserror](https://cloud.githubusercontent.com/assets/896472/10813147/0616519c-7e1d-11e5-9ad5-bdee47691439.png)\r\n","created_at":"2015-10-29T08:10:05Z","updated_at":"2015-10-30T09:00:14Z","closed_at":"2015-10-30T09:00:14Z","merged_at":"2015-10-30T09:00:14Z","merge_commit_sha":"d8b3f5b7535d39b00526b94aca014c6336b22901","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881/commits","review_comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881/comments","review_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/881/comments","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/9915e9e563c2d303495baa454cd8cbeab7f5c302","head":{"label":"jniles:issue-681","ref":"issue-681","sha":"9915e9e563c2d303495baa454cd8cbeab7f5c302","user":{"login":"jniles","id":896472,"avatar_url":"https://avatars.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"repo":{"id":21632374,"name":"bhima","full_name":"jniles/bhima","owner":{"login":"jniles","id":896472,"avatar_url":"https://avatars.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jniles/bhima","description":"Continuation of the Bika HIS project with an Angular core.","fork":true,"url":"https://api.github.com/repos/jniles/bhima","forks_url":"https://api.github.com/repos/jniles/bhima/forks","keys_url":"https://api.github.com/repos/jniles/bhima/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jniles/bhima/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jniles/bhima/teams","hooks_url":"https://api.github.com/repos/jniles/bhima/hooks","issue_events_url":"https://api.github.com/repos/jniles/bhima/issues/events{/number}","events_url":"https://api.github.com/repos/jniles/bhima/events","assignees_url":"https://api.github.com/repos/jniles/bhima/assignees{/user}","branches_url":"https://api.github.com/repos/jniles/bhima/branches{/branch}","tags_url":"https://api.github.com/repos/jniles/bhima/tags","blobs_url":"https://api.github.com/repos/jniles/bhima/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jniles/bhima/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jniles/bhima/git/refs{/sha}","trees_url":"https://api.github.com/repos/jniles/bhima/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jniles/bhima/statuses/{sha}","languages_url":"https://api.github.com/repos/jniles/bhima/languages","stargazers_url":"https://api.github.com/repos/jniles/bhima/stargazers","contributors_url":"https://api.github.com/repos/jniles/bhima/contributors","subscribers_url":"https://api.github.com/repos/jniles/bhima/subscribers","subscription_url":"https://api.github.com/repos/jniles/bhima/subscription","commits_url":"https://api.github.com/repos/jniles/bhima/commits{/sha}","git_commits_url":"https://api.github.com/repos/jniles/bhima/git/commits{/sha}","comments_url":"https://api.github.com/repos/jniles/bhima/comments{/number}","issue_comment_url":"https://api.github.com/repos/jniles/bhima/issues/comments{/number}","contents_url":"https://api.github.com/repos/jniles/bhima/contents/{+path}","compare_url":"https://api.github.com/repos/jniles/bhima/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jniles/bhima/merges","archive_url":"https://api.github.com/repos/jniles/bhima/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jniles/bhima/downloads","issues_url":"https://api.github.com/repos/jniles/bhima/issues{/number}","pulls_url":"https://api.github.com/repos/jniles/bhima/pulls{/number}","milestones_url":"https://api.github.com/repos/jniles/bhima/milestones{/number}","notifications_url":"https://api.github.com/repos/jniles/bhima/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jniles/bhima/labels{/name}","releases_url":"https://api.github.com/repos/jniles/bhima/releases{/id}","created_at":"2014-07-08T23:14:42Z","updated_at":"2014-07-09T01:36:06Z","pushed_at":"2015-10-30T08:54:33Z","git_url":"git://github.com/jniles/bhima.git","ssh_url":"git@github.com:jniles/bhima.git","clone_url":"https://github.com/jniles/bhima.git","svn_url":"https://github.com/jniles/bhima","homepage":null,"size":102388,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"IMA-WorldHealth:development","ref":"development","sha":"a795a342cc52d1ead79aa6ee5048b4d34213203f","user":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars.githubusercontent.com/u/5330583?v=3","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"repo":{"id":15043926,"name":"bhima","full_name":"IMA-WorldHealth/bhima","owner":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars.githubusercontent.com/u/5330583?v=3","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IMA-WorldHealth/bhima","description":"A hospital information system for developing countries.","fork":false,"url":"https://api.github.com/repos/IMA-WorldHealth/bhima","forks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/forks","keys_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/teams","hooks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/hooks","issue_events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/events{/number}","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/events","assignees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/assignees{/user}","branches_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/branches{/branch}","tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/tags","blobs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/refs{/sha}","trees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/{sha}","languages_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/languages","stargazers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/stargazers","contributors_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/contributors","subscribers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/subscribers","subscription_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/subscription","commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/commits{/sha}","git_commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/commits{/sha}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/comments{/number}","issue_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/comments{/number}","contents_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/contents/{+path}","compare_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/merges","archive_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/downloads","issues_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues{/number}","pulls_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls{/number}","milestones_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/milestones{/number}","notifications_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/labels{/name}","releases_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/releases{/id}","created_at":"2013-12-09T10:07:16Z","updated_at":"2015-08-26T12:16:26Z","pushed_at":"2015-10-30T09:00:14Z","git_url":"git://github.com/IMA-WorldHealth/bhima.git","ssh_url":"git@github.com:IMA-WorldHealth/bhima.git","clone_url":"https://github.com/IMA-WorldHealth/bhima.git","svn_url":"https://github.com/IMA-WorldHealth/bhima","homepage":"","size":106042,"stargazers_count":6,"watchers_count":6,"language":"Groff","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":83,"forks":10,"open_issues":83,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881"},"html":{"href":"https://github.com/IMA-WorldHealth/bhima/pull/881"},"issue":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/881"},"comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/881/comments"},"review_comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881/comments"},"review_comment":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/881/commits"},"statuses":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/9915e9e563c2d303495baa454cd8cbeab7f5c302"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DedrickEnc","id":5418919,"avatar_url":"https://avatars.githubusercontent.com/u/5418919?v=3","gravatar_id":"","url":"https://api.github.com/users/DedrickEnc","html_url":"https://github.com/DedrickEnc","followers_url":"https://api.github.com/users/DedrickEnc/followers","following_url":"https://api.github.com/users/DedrickEnc/following{/other_user}","gists_url":"https://api.github.com/users/DedrickEnc/gists{/gist_id}","starred_url":"https://api.github.com/users/DedrickEnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DedrickEnc/subscriptions","organizations_url":"https://api.github.com/users/DedrickEnc/orgs","repos_url":"https://api.github.com/users/DedrickEnc/repos","events_url":"https://api.github.com/users/DedrickEnc/events{/privacy}","received_events_url":"https://api.github.com/users/DedrickEnc/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":2,"additions":36,"deletions":15,"changed_files":5}}