{"action":"opened","number":4212,"pull_request":{"url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212","id":222936422,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyOTM2NDIy","html_url":"https://github.com/raster-foundry/raster-foundry/pull/4212","diff_url":"https://github.com/raster-foundry/raster-foundry/pull/4212.diff","patch_url":"https://github.com/raster-foundry/raster-foundry/pull/4212.patch","issue_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/4212","number":4212,"state":"open","locked":false,"title":"Fix org/team frontend permissions, undefined function call","user":{"login":"Lknechtli","id":4392704,"node_id":"MDQ6VXNlcjQzOTI3MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4392704?v=4","gravatar_id":"","url":"https://api.github.com/users/Lknechtli","html_url":"https://github.com/Lknechtli","followers_url":"https://api.github.com/users/Lknechtli/followers","following_url":"https://api.github.com/users/Lknechtli/following{/other_user}","gists_url":"https://api.github.com/users/Lknechtli/gists{/gist_id}","starred_url":"https://api.github.com/users/Lknechtli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lknechtli/subscriptions","organizations_url":"https://api.github.com/users/Lknechtli/orgs","repos_url":"https://api.github.com/users/Lknechtli/repos","events_url":"https://api.github.com/users/Lknechtli/events{/privacy}","received_events_url":"https://api.github.com/users/Lknechtli/received_events","type":"User","site_admin":false},"body":"## Overview\r\nAdd user button no longer shows for non-admins of teams and orgs\r\nFix undefined function call when selecting project scenes by clicking the map in the advanced color correction view\r\n\r\nAdd thrown error to function that doesn't seem to be used anywhere and I don't want to spend the time to fix now.\r\n\r\n### Checklist\r\n\r\n- [ ] Description of PR is in an appropriate section of the [changelog](https://github.com/raster-foundry/raster-foundry/blob/develop/CHANGELOG.md) and grouped with similar changes if possible\r\n- ~Styleguide updated, if necessary~\r\n- ~[Swagger specification](https://github.com/raster-foundry/raster-foundry-api-spec) updated~\r\n- ~Symlinks from new migrations present or corrected for any new migrations~\r\n- ~Any content changes are properly templated using `BUILDCONFIG.APP_NAME~`\r\n- ~Any new SQL strings have tests~\r\n\r\n### Notes\r\ngetProjectCorners is called in the layer service, but we don't seem to use that function for projects anywhere. I've added an error that's descriptive just in case it shows up.\r\n\r\n## Testing Instructions\r\n * As a non-admin, visit a project and team page that you are a member of. Verify that there is no \"add user\" button\r\n* As both an org admin, and a platform admin, visit those same pages and verify that you can see the \"add user\" button\r\n* Visit the project advanced color correction view and verify that you can select scenes by clicking them on the map\r\nCloses #4196 \r\nCloses #4134\r\n","created_at":"2018-10-15T14:55:10Z","updated_at":"2018-10-15T14:55:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"aaronxsu","id":16109558,"node_id":"MDQ6VXNlcjE2MTA5NTU4","avatar_url":"https://avatars0.githubusercontent.com/u/16109558?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronxsu","html_url":"https://github.com/aaronxsu","followers_url":"https://api.github.com/users/aaronxsu/followers","following_url":"https://api.github.com/users/aaronxsu/following{/other_user}","gists_url":"https://api.github.com/users/aaronxsu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronxsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronxsu/subscriptions","organizations_url":"https://api.github.com/users/aaronxsu/orgs","repos_url":"https://api.github.com/users/aaronxsu/repos","events_url":"https://api.github.com/users/aaronxsu/events{/privacy}","received_events_url":"https://api.github.com/users/aaronxsu/received_events","type":"User","site_admin":false},"assignees":[{"login":"aaronxsu","id":16109558,"node_id":"MDQ6VXNlcjE2MTA5NTU4","avatar_url":"https://avatars0.githubusercontent.com/u/16109558?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronxsu","html_url":"https://github.com/aaronxsu","followers_url":"https://api.github.com/users/aaronxsu/followers","following_url":"https://api.github.com/users/aaronxsu/following{/other_user}","gists_url":"https://api.github.com/users/aaronxsu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronxsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronxsu/subscriptions","organizations_url":"https://api.github.com/users/aaronxsu/orgs","repos_url":"https://api.github.com/users/aaronxsu/repos","events_url":"https://api.github.com/users/aaronxsu/events{/privacy}","received_events_url":"https://api.github.com/users/aaronxsu/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212/commits","review_comments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212/comments","review_comment_url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/4212/comments","statuses_url":"https://api.github.com/repos/raster-foundry/raster-foundry/statuses/3e22bd879f4b99d078cc2a4c0bc55fb0db921a98","head":{"label":"raster-foundry:feature/lk/fix-color-correct-missingfunction","ref":"feature/lk/fix-color-correct-missingfunction","sha":"3e22bd879f4b99d078cc2a4c0bc55fb0db921a98","user":{"login":"raster-foundry","id":30530043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTMwMDQz","avatar_url":"https://avatars3.githubusercontent.com/u/30530043?v=4","gravatar_id":"","url":"https://api.github.com/users/raster-foundry","html_url":"https://github.com/raster-foundry","followers_url":"https://api.github.com/users/raster-foundry/followers","following_url":"https://api.github.com/users/raster-foundry/following{/other_user}","gists_url":"https://api.github.com/users/raster-foundry/gists{/gist_id}","starred_url":"https://api.github.com/users/raster-foundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raster-foundry/subscriptions","organizations_url":"https://api.github.com/users/raster-foundry/orgs","repos_url":"https://api.github.com/users/raster-foundry/repos","events_url":"https://api.github.com/users/raster-foundry/events{/privacy}","received_events_url":"https://api.github.com/users/raster-foundry/received_events","type":"Organization","site_admin":false},"repo":{"id":36464140,"node_id":"MDEwOlJlcG9zaXRvcnkzNjQ2NDE0MA==","name":"raster-foundry","full_name":"raster-foundry/raster-foundry","private":false,"owner":{"login":"raster-foundry","id":30530043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTMwMDQz","avatar_url":"https://avatars3.githubusercontent.com/u/30530043?v=4","gravatar_id":"","url":"https://api.github.com/users/raster-foundry","html_url":"https://github.com/raster-foundry","followers_url":"https://api.github.com/users/raster-foundry/followers","following_url":"https://api.github.com/users/raster-foundry/following{/other_user}","gists_url":"https://api.github.com/users/raster-foundry/gists{/gist_id}","starred_url":"https://api.github.com/users/raster-foundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raster-foundry/subscriptions","organizations_url":"https://api.github.com/users/raster-foundry/orgs","repos_url":"https://api.github.com/users/raster-foundry/repos","events_url":"https://api.github.com/users/raster-foundry/events{/privacy}","received_events_url":"https://api.github.com/users/raster-foundry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/raster-foundry/raster-foundry","description":"The Raster Foundry web application.","fork":false,"url":"https://api.github.com/repos/raster-foundry/raster-foundry","forks_url":"https://api.github.com/repos/raster-foundry/raster-foundry/forks","keys_url":"https://api.github.com/repos/raster-foundry/raster-foundry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raster-foundry/raster-foundry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raster-foundry/raster-foundry/teams","hooks_url":"https://api.github.com/repos/raster-foundry/raster-foundry/hooks","issue_events_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/events{/number}","events_url":"https://api.github.com/repos/raster-foundry/raster-foundry/events","assignees_url":"https://api.github.com/repos/raster-foundry/raster-foundry/assignees{/user}","branches_url":"https://api.github.com/repos/raster-foundry/raster-foundry/branches{/branch}","tags_url":"https://api.github.com/repos/raster-foundry/raster-foundry/tags","blobs_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/refs{/sha}","trees_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raster-foundry/raster-foundry/statuses/{sha}","languages_url":"https://api.github.com/repos/raster-foundry/raster-foundry/languages","stargazers_url":"https://api.github.com/repos/raster-foundry/raster-foundry/stargazers","contributors_url":"https://api.github.com/repos/raster-foundry/raster-foundry/contributors","subscribers_url":"https://api.github.com/repos/raster-foundry/raster-foundry/subscribers","subscription_url":"https://api.github.com/repos/raster-foundry/raster-foundry/subscription","commits_url":"https://api.github.com/repos/raster-foundry/raster-foundry/commits{/sha}","git_commits_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/commits{/sha}","comments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/comments{/number}","issue_comment_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/comments{/number}","contents_url":"https://api.github.com/repos/raster-foundry/raster-foundry/contents/{+path}","compare_url":"https://api.github.com/repos/raster-foundry/raster-foundry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raster-foundry/raster-foundry/merges","archive_url":"https://api.github.com/repos/raster-foundry/raster-foundry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raster-foundry/raster-foundry/downloads","issues_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues{/number}","pulls_url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls{/number}","milestones_url":"https://api.github.com/repos/raster-foundry/raster-foundry/milestones{/number}","notifications_url":"https://api.github.com/repos/raster-foundry/raster-foundry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raster-foundry/raster-foundry/labels{/name}","releases_url":"https://api.github.com/repos/raster-foundry/raster-foundry/releases{/id}","deployments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/deployments","created_at":"2015-05-28T20:25:45Z","updated_at":"2018-10-15T12:27:18Z","pushed_at":"2018-10-15T14:46:38Z","git_url":"git://github.com/raster-foundry/raster-foundry.git","ssh_url":"git@github.com:raster-foundry/raster-foundry.git","clone_url":"https://github.com/raster-foundry/raster-foundry.git","svn_url":"https://github.com/raster-foundry/raster-foundry","homepage":"https://www.rasterfoundry.com","size":37779,"stargazers_count":68,"watchers_count":68,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":439,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":28,"open_issues":439,"watchers":68,"default_branch":"develop"}},"base":{"label":"raster-foundry:develop","ref":"develop","sha":"4615482d1d4e7008dfb20684e5087d43ab0713c9","user":{"login":"raster-foundry","id":30530043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTMwMDQz","avatar_url":"https://avatars3.githubusercontent.com/u/30530043?v=4","gravatar_id":"","url":"https://api.github.com/users/raster-foundry","html_url":"https://github.com/raster-foundry","followers_url":"https://api.github.com/users/raster-foundry/followers","following_url":"https://api.github.com/users/raster-foundry/following{/other_user}","gists_url":"https://api.github.com/users/raster-foundry/gists{/gist_id}","starred_url":"https://api.github.com/users/raster-foundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raster-foundry/subscriptions","organizations_url":"https://api.github.com/users/raster-foundry/orgs","repos_url":"https://api.github.com/users/raster-foundry/repos","events_url":"https://api.github.com/users/raster-foundry/events{/privacy}","received_events_url":"https://api.github.com/users/raster-foundry/received_events","type":"Organization","site_admin":false},"repo":{"id":36464140,"node_id":"MDEwOlJlcG9zaXRvcnkzNjQ2NDE0MA==","name":"raster-foundry","full_name":"raster-foundry/raster-foundry","private":false,"owner":{"login":"raster-foundry","id":30530043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNTMwMDQz","avatar_url":"https://avatars3.githubusercontent.com/u/30530043?v=4","gravatar_id":"","url":"https://api.github.com/users/raster-foundry","html_url":"https://github.com/raster-foundry","followers_url":"https://api.github.com/users/raster-foundry/followers","following_url":"https://api.github.com/users/raster-foundry/following{/other_user}","gists_url":"https://api.github.com/users/raster-foundry/gists{/gist_id}","starred_url":"https://api.github.com/users/raster-foundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raster-foundry/subscriptions","organizations_url":"https://api.github.com/users/raster-foundry/orgs","repos_url":"https://api.github.com/users/raster-foundry/repos","events_url":"https://api.github.com/users/raster-foundry/events{/privacy}","received_events_url":"https://api.github.com/users/raster-foundry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/raster-foundry/raster-foundry","description":"The Raster Foundry web application.","fork":false,"url":"https://api.github.com/repos/raster-foundry/raster-foundry","forks_url":"https://api.github.com/repos/raster-foundry/raster-foundry/forks","keys_url":"https://api.github.com/repos/raster-foundry/raster-foundry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raster-foundry/raster-foundry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raster-foundry/raster-foundry/teams","hooks_url":"https://api.github.com/repos/raster-foundry/raster-foundry/hooks","issue_events_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/events{/number}","events_url":"https://api.github.com/repos/raster-foundry/raster-foundry/events","assignees_url":"https://api.github.com/repos/raster-foundry/raster-foundry/assignees{/user}","branches_url":"https://api.github.com/repos/raster-foundry/raster-foundry/branches{/branch}","tags_url":"https://api.github.com/repos/raster-foundry/raster-foundry/tags","blobs_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/refs{/sha}","trees_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raster-foundry/raster-foundry/statuses/{sha}","languages_url":"https://api.github.com/repos/raster-foundry/raster-foundry/languages","stargazers_url":"https://api.github.com/repos/raster-foundry/raster-foundry/stargazers","contributors_url":"https://api.github.com/repos/raster-foundry/raster-foundry/contributors","subscribers_url":"https://api.github.com/repos/raster-foundry/raster-foundry/subscribers","subscription_url":"https://api.github.com/repos/raster-foundry/raster-foundry/subscription","commits_url":"https://api.github.com/repos/raster-foundry/raster-foundry/commits{/sha}","git_commits_url":"https://api.github.com/repos/raster-foundry/raster-foundry/git/commits{/sha}","comments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/comments{/number}","issue_comment_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/comments{/number}","contents_url":"https://api.github.com/repos/raster-foundry/raster-foundry/contents/{+path}","compare_url":"https://api.github.com/repos/raster-foundry/raster-foundry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raster-foundry/raster-foundry/merges","archive_url":"https://api.github.com/repos/raster-foundry/raster-foundry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raster-foundry/raster-foundry/downloads","issues_url":"https://api.github.com/repos/raster-foundry/raster-foundry/issues{/number}","pulls_url":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls{/number}","milestones_url":"https://api.github.com/repos/raster-foundry/raster-foundry/milestones{/number}","notifications_url":"https://api.github.com/repos/raster-foundry/raster-foundry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raster-foundry/raster-foundry/labels{/name}","releases_url":"https://api.github.com/repos/raster-foundry/raster-foundry/releases{/id}","deployments_url":"https://api.github.com/repos/raster-foundry/raster-foundry/deployments","created_at":"2015-05-28T20:25:45Z","updated_at":"2018-10-15T12:27:18Z","pushed_at":"2018-10-15T14:46:38Z","git_url":"git://github.com/raster-foundry/raster-foundry.git","ssh_url":"git@github.com:raster-foundry/raster-foundry.git","clone_url":"https://github.com/raster-foundry/raster-foundry.git","svn_url":"https://github.com/raster-foundry/raster-foundry","homepage":"https://www.rasterfoundry.com","size":37779,"stargazers_count":68,"watchers_count":68,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":439,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":28,"open_issues":439,"watchers":68,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212"},"html":{"href":"https://github.com/raster-foundry/raster-foundry/pull/4212"},"issue":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/4212"},"comments":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/issues/4212/comments"},"review_comments":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212/comments"},"review_comment":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/pulls/4212/commits"},"statuses":{"href":"https://api.github.com/repos/raster-foundry/raster-foundry/statuses/3e22bd879f4b99d078cc2a4c0bc55fb0db921a98"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":25,"deletions":10,"changed_files":4}}
{"actor":{"display_login":"Lknechtli"}}