{"action":"opened","number":38,"pull_request":{"url":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38","id":53442408,"html_url":"https://github.com/bcgov/ckanext-bcgov/pull/38","diff_url":"https://github.com/bcgov/ckanext-bcgov/pull/38.diff","patch_url":"https://github.com/bcgov/ckanext-bcgov/pull/38.patch","issue_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/38","number":38,"state":"open","locked":false,"title":"block user registration form","user":{"login":"perceptron-XYZ","id":3538382,"avatar_url":"https://avatars.githubusercontent.com/u/3538382?v=3","gravatar_id":"","url":"https://api.github.com/users/perceptron-XYZ","html_url":"https://github.com/perceptron-XYZ","followers_url":"https://api.github.com/users/perceptron-XYZ/followers","following_url":"https://api.github.com/users/perceptron-XYZ/following{/other_user}","gists_url":"https://api.github.com/users/perceptron-XYZ/gists{/gist_id}","starred_url":"https://api.github.com/users/perceptron-XYZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perceptron-XYZ/subscriptions","organizations_url":"https://api.github.com/users/perceptron-XYZ/orgs","repos_url":"https://api.github.com/users/perceptron-XYZ/repos","events_url":"https://api.github.com/users/perceptron-XYZ/events{/privacy}","received_events_url":"https://api.github.com/users/perceptron-XYZ/received_events","type":"User","site_admin":false},"body":"The problem:\r\nWith edc-idir plugin enabled, users cannot have access to /user/register on the UI, but they can write scripts to POST form info to /user/register. This is not taken care of by IAuthFunctions.\r\n\r\nDesired situation and solution:\r\nIf a user is logged in, access to /user/register will ask him or her to log out first, just like ckan\r\nIf an unlogged in user tries to access /user/register, use the behaviour from edc-idir.\r\nSOLUTION is the combine the behaviour of those two packages, and make our own customized register method.","created_at":"2015-12-11T20:50:11Z","updated_at":"2015-12-11T20:50:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38/commits","review_comments_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38/comments","review_comment_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/38/comments","statuses_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/statuses/9f83af72dd23c7e4ebffe66a76edded63a2b2266","head":{"label":"perceptron-XYZ:no-wet-boew","ref":"no-wet-boew","sha":"9f83af72dd23c7e4ebffe66a76edded63a2b2266","user":{"login":"perceptron-XYZ","id":3538382,"avatar_url":"https://avatars.githubusercontent.com/u/3538382?v=3","gravatar_id":"","url":"https://api.github.com/users/perceptron-XYZ","html_url":"https://github.com/perceptron-XYZ","followers_url":"https://api.github.com/users/perceptron-XYZ/followers","following_url":"https://api.github.com/users/perceptron-XYZ/following{/other_user}","gists_url":"https://api.github.com/users/perceptron-XYZ/gists{/gist_id}","starred_url":"https://api.github.com/users/perceptron-XYZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perceptron-XYZ/subscriptions","organizations_url":"https://api.github.com/users/perceptron-XYZ/orgs","repos_url":"https://api.github.com/users/perceptron-XYZ/repos","events_url":"https://api.github.com/users/perceptron-XYZ/events{/privacy}","received_events_url":"https://api.github.com/users/perceptron-XYZ/received_events","type":"User","site_admin":false},"repo":{"id":45991175,"name":"ckanext-bcgov","full_name":"perceptron-XYZ/ckanext-bcgov","owner":{"login":"perceptron-XYZ","id":3538382,"avatar_url":"https://avatars.githubusercontent.com/u/3538382?v=3","gravatar_id":"","url":"https://api.github.com/users/perceptron-XYZ","html_url":"https://github.com/perceptron-XYZ","followers_url":"https://api.github.com/users/perceptron-XYZ/followers","following_url":"https://api.github.com/users/perceptron-XYZ/following{/other_user}","gists_url":"https://api.github.com/users/perceptron-XYZ/gists{/gist_id}","starred_url":"https://api.github.com/users/perceptron-XYZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perceptron-XYZ/subscriptions","organizations_url":"https://api.github.com/users/perceptron-XYZ/orgs","repos_url":"https://api.github.com/users/perceptron-XYZ/repos","events_url":"https://api.github.com/users/perceptron-XYZ/events{/privacy}","received_events_url":"https://api.github.com/users/perceptron-XYZ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/perceptron-XYZ/ckanext-bcgov","description":"BC Data Catalogue source code","fork":true,"url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov","forks_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/forks","keys_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/teams","hooks_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/hooks","issue_events_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/issues/events{/number}","events_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/events","assignees_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/assignees{/user}","branches_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/branches{/branch}","tags_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/tags","blobs_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/git/refs{/sha}","trees_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/statuses/{sha}","languages_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/languages","stargazers_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/stargazers","contributors_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/contributors","subscribers_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/subscribers","subscription_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/subscription","commits_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/commits{/sha}","git_commits_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/git/commits{/sha}","comments_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/comments{/number}","issue_comment_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/issues/comments{/number}","contents_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/contents/{+path}","compare_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/merges","archive_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/downloads","issues_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/issues{/number}","pulls_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/pulls{/number}","milestones_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/milestones{/number}","notifications_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/labels{/name}","releases_url":"https://api.github.com/repos/perceptron-XYZ/ckanext-bcgov/releases{/id}","created_at":"2015-11-11T15:48:30Z","updated_at":"2015-11-11T15:48:32Z","pushed_at":"2015-12-11T20:46:09Z","git_url":"git://github.com/perceptron-XYZ/ckanext-bcgov.git","ssh_url":"git@github.com:perceptron-XYZ/ckanext-bcgov.git","clone_url":"https://github.com/perceptron-XYZ/ckanext-bcgov.git","svn_url":"https://github.com/perceptron-XYZ/ckanext-bcgov","homepage":"http://catalogue.data.gov.bc.ca","size":21790,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"bcgov:master","ref":"master","sha":"6f513380fb40db690361820afa325ae5d23d0351","user":{"login":"bcgov","id":916280,"avatar_url":"https://avatars.githubusercontent.com/u/916280?v=3","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"repo":{"id":35693455,"name":"ckanext-bcgov","full_name":"bcgov/ckanext-bcgov","owner":{"login":"bcgov","id":916280,"avatar_url":"https://avatars.githubusercontent.com/u/916280?v=3","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bcgov/ckanext-bcgov","description":"BC Data Catalogue source code","fork":false,"url":"https://api.github.com/repos/bcgov/ckanext-bcgov","forks_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/forks","keys_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/teams","hooks_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/hooks","issue_events_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/events{/number}","events_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/events","assignees_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/assignees{/user}","branches_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/branches{/branch}","tags_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/tags","blobs_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/statuses/{sha}","languages_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/languages","stargazers_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/stargazers","contributors_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/contributors","subscribers_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/subscribers","subscription_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/subscription","commits_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/contents/{+path}","compare_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/merges","archive_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/downloads","issues_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues{/number}","pulls_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls{/number}","milestones_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/milestones{/number}","notifications_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/labels{/name}","releases_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/releases{/id}","created_at":"2015-05-15T19:49:55Z","updated_at":"2015-12-03T06:50:52Z","pushed_at":"2015-12-11T17:54:31Z","git_url":"git://github.com/bcgov/ckanext-bcgov.git","ssh_url":"git@github.com:bcgov/ckanext-bcgov.git","clone_url":"https://github.com/bcgov/ckanext-bcgov.git","svn_url":"https://github.com/bcgov/ckanext-bcgov","homepage":"http://catalogue.data.gov.bc.ca","size":21997,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38"},"html":{"href":"https://github.com/bcgov/ckanext-bcgov/pull/38"},"issue":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/38"},"comments":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/bcgov/ckanext-bcgov/statuses/9f83af72dd23c7e4ebffe66a76edded63a2b2266"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":51,"deletions":34,"changed_files":1}}