{"action":"created","comment":{"url":"https://api.github.com/repos/krico/jas/pulls/comments/28474289","id":28474289,"diff_hunk":"@@ -45,6 +45,8 @@\n         vm.loadGroups();\n         vm.loadActivityTypes();\n \n+        vm.isAdmin = isAdmin;","path":"schedule/schedule-appengine/src/main/client/jasify/admin/organization/admin-organization.js","position":13,"original_position":13,"commit_id":"1508dc76b75ed971b1e1d162768b6282c9084efc","original_commit_id":"1508dc76b75ed971b1e1d162768b6282c9084efc","user":{"login":"krico","id":6952185,"avatar_url":"https://avatars.githubusercontent.com/u/6952185?v=3","gravatar_id":"","url":"https://api.github.com/users/krico","html_url":"https://github.com/krico","followers_url":"https://api.github.com/users/krico/followers","following_url":"https://api.github.com/users/krico/following{/other_user}","gists_url":"https://api.github.com/users/krico/gists{/gist_id}","starred_url":"https://api.github.com/users/krico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krico/subscriptions","organizations_url":"https://api.github.com/users/krico/orgs","repos_url":"https://api.github.com/users/krico/repos","events_url":"https://api.github.com/users/krico/events{/privacy}","received_events_url":"https://api.github.com/users/krico/received_events","type":"User","site_admin":false},"body":":-) wrong place...  needs to be before execution calls\r\n```javascript\r\nvm.isAdmin = isAdmin; //function\r\n\r\nvm.loadGroup(); // execution\r\n```","created_at":"2015-04-15T23:52:03Z","updated_at":"2015-04-15T23:52:03Z","html_url":"https://github.com/krico/jas/pull/241#discussion_r28474289","pull_request_url":"https://api.github.com/repos/krico/jas/pulls/241","_links":{"self":{"href":"https://api.github.com/repos/krico/jas/pulls/comments/28474289"},"html":{"href":"https://github.com/krico/jas/pull/241#discussion_r28474289"},"pull_request":{"href":"https://api.github.com/repos/krico/jas/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/krico/jas/pulls/241","id":33407097,"html_url":"https://github.com/krico/jas/pull/241","diff_url":"https://github.com/krico/jas/pull/241.diff","patch_url":"https://github.com/krico/jas/pull/241.patch","issue_url":"https://api.github.com/repos/krico/jas/issues/241","number":241,"state":"open","locked":false,"title":"Jas 236","user":{"login":"wszarmach","id":9398950,"avatar_url":"https://avatars.githubusercontent.com/u/9398950?v=3","gravatar_id":"","url":"https://api.github.com/users/wszarmach","html_url":"https://github.com/wszarmach","followers_url":"https://api.github.com/users/wszarmach/followers","following_url":"https://api.github.com/users/wszarmach/following{/other_user}","gists_url":"https://api.github.com/users/wszarmach/gists{/gist_id}","starred_url":"https://api.github.com/users/wszarmach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wszarmach/subscriptions","organizations_url":"https://api.github.com/users/wszarmach/orgs","repos_url":"https://api.github.com/users/wszarmach/repos","events_url":"https://api.github.com/users/wszarmach/events{/privacy}","received_events_url":"https://api.github.com/users/wszarmach/received_events","type":"User","site_admin":false},"body":"Its not an ideal solution but it fulfils the requirements.\r\nWe now have the following\r\n* admin: Super user that can do everything\r\n* orgMember: For any organization that the user is a member they can create/delete activities and activityTypes, view/remove subscriptions. They can not add members to organizations or groups, delete organizations or perform any admin actions for organizations they are not a member of.\r\n\r\nOne thing to note is that for a user to become an organization member an admin must add them.","created_at":"2015-04-15T23:39:10Z","updated_at":"2015-04-15T23:52:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dec85fc6b607211e3bf9f66ed2469fbb3741e53d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krico/jas/pulls/241/commits","review_comments_url":"https://api.github.com/repos/krico/jas/pulls/241/comments","review_comment_url":"https://api.github.com/repos/krico/jas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krico/jas/issues/241/comments","statuses_url":"https://api.github.com/repos/krico/jas/statuses/1508dc76b75ed971b1e1d162768b6282c9084efc","head":{"label":"krico:jas-236","ref":"jas-236","sha":"1508dc76b75ed971b1e1d162768b6282c9084efc","user":{"login":"krico","id":6952185,"avatar_url":"https://avatars.githubusercontent.com/u/6952185?v=3","gravatar_id":"","url":"https://api.github.com/users/krico","html_url":"https://github.com/krico","followers_url":"https://api.github.com/users/krico/followers","following_url":"https://api.github.com/users/krico/following{/other_user}","gists_url":"https://api.github.com/users/krico/gists{/gist_id}","starred_url":"https://api.github.com/users/krico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krico/subscriptions","organizations_url":"https://api.github.com/users/krico/orgs","repos_url":"https://api.github.com/users/krico/repos","events_url":"https://api.github.com/users/krico/events{/privacy}","received_events_url":"https://api.github.com/users/krico/received_events","type":"User","site_admin":false},"repo":{"id":25744696,"name":"jas","full_name":"krico/jas","owner":{"login":"krico","id":6952185,"avatar_url":"https://avatars.githubusercontent.com/u/6952185?v=3","gravatar_id":"","url":"https://api.github.com/users/krico","html_url":"https://github.com/krico","followers_url":"https://api.github.com/users/krico/followers","following_url":"https://api.github.com/users/krico/following{/other_user}","gists_url":"https://api.github.com/users/krico/gists{/gist_id}","starred_url":"https://api.github.com/users/krico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krico/subscriptions","organizations_url":"https://api.github.com/users/krico/orgs","repos_url":"https://api.github.com/users/krico/repos","events_url":"https://api.github.com/users/krico/events{/privacy}","received_events_url":"https://api.github.com/users/krico/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krico/jas","description":"Janes Asmussen Szarmach","fork":false,"url":"https://api.github.com/repos/krico/jas","forks_url":"https://api.github.com/repos/krico/jas/forks","keys_url":"https://api.github.com/repos/krico/jas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krico/jas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krico/jas/teams","hooks_url":"https://api.github.com/repos/krico/jas/hooks","issue_events_url":"https://api.github.com/repos/krico/jas/issues/events{/number}","events_url":"https://api.github.com/repos/krico/jas/events","assignees_url":"https://api.github.com/repos/krico/jas/assignees{/user}","branches_url":"https://api.github.com/repos/krico/jas/branches{/branch}","tags_url":"https://api.github.com/repos/krico/jas/tags","blobs_url":"https://api.github.com/repos/krico/jas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krico/jas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krico/jas/git/refs{/sha}","trees_url":"https://api.github.com/repos/krico/jas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krico/jas/statuses/{sha}","languages_url":"https://api.github.com/repos/krico/jas/languages","stargazers_url":"https://api.github.com/repos/krico/jas/stargazers","contributors_url":"https://api.github.com/repos/krico/jas/contributors","subscribers_url":"https://api.github.com/repos/krico/jas/subscribers","subscription_url":"https://api.github.com/repos/krico/jas/subscription","commits_url":"https://api.github.com/repos/krico/jas/commits{/sha}","git_commits_url":"https://api.github.com/repos/krico/jas/git/commits{/sha}","comments_url":"https://api.github.com/repos/krico/jas/comments{/number}","issue_comment_url":"https://api.github.com/repos/krico/jas/issues/comments{/number}","contents_url":"https://api.github.com/repos/krico/jas/contents/{+path}","compare_url":"https://api.github.com/repos/krico/jas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krico/jas/merges","archive_url":"https://api.github.com/repos/krico/jas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krico/jas/downloads","issues_url":"https://api.github.com/repos/krico/jas/issues{/number}","pulls_url":"https://api.github.com/repos/krico/jas/pulls{/number}","milestones_url":"https://api.github.com/repos/krico/jas/milestones{/number}","notifications_url":"https://api.github.com/repos/krico/jas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krico/jas/labels{/name}","releases_url":"https://api.github.com/repos/krico/jas/releases{/id}","created_at":"2014-10-25T20:01:46Z","updated_at":"2015-04-14T05:49:59Z","pushed_at":"2015-04-15T23:47:56Z","git_url":"git://github.com/krico/jas.git","ssh_url":"git@github.com:krico/jas.git","clone_url":"https://github.com/krico/jas.git","svn_url":"https://github.com/krico/jas","homepage":null,"size":7948,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":54,"forks":0,"open_issues":54,"watchers":2,"default_branch":"master"}},"base":{"label":"krico:master","ref":"master","sha":"e8e16b13a7be86a9cba5ab210048c94cb5caa383","user":{"login":"krico","id":6952185,"avatar_url":"https://avatars.githubusercontent.com/u/6952185?v=3","gravatar_id":"","url":"https://api.github.com/users/krico","html_url":"https://github.com/krico","followers_url":"https://api.github.com/users/krico/followers","following_url":"https://api.github.com/users/krico/following{/other_user}","gists_url":"https://api.github.com/users/krico/gists{/gist_id}","starred_url":"https://api.github.com/users/krico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krico/subscriptions","organizations_url":"https://api.github.com/users/krico/orgs","repos_url":"https://api.github.com/users/krico/repos","events_url":"https://api.github.com/users/krico/events{/privacy}","received_events_url":"https://api.github.com/users/krico/received_events","type":"User","site_admin":false},"repo":{"id":25744696,"name":"jas","full_name":"krico/jas","owner":{"login":"krico","id":6952185,"avatar_url":"https://avatars.githubusercontent.com/u/6952185?v=3","gravatar_id":"","url":"https://api.github.com/users/krico","html_url":"https://github.com/krico","followers_url":"https://api.github.com/users/krico/followers","following_url":"https://api.github.com/users/krico/following{/other_user}","gists_url":"https://api.github.com/users/krico/gists{/gist_id}","starred_url":"https://api.github.com/users/krico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krico/subscriptions","organizations_url":"https://api.github.com/users/krico/orgs","repos_url":"https://api.github.com/users/krico/repos","events_url":"https://api.github.com/users/krico/events{/privacy}","received_events_url":"https://api.github.com/users/krico/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krico/jas","description":"Janes Asmussen Szarmach","fork":false,"url":"https://api.github.com/repos/krico/jas","forks_url":"https://api.github.com/repos/krico/jas/forks","keys_url":"https://api.github.com/repos/krico/jas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krico/jas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krico/jas/teams","hooks_url":"https://api.github.com/repos/krico/jas/hooks","issue_events_url":"https://api.github.com/repos/krico/jas/issues/events{/number}","events_url":"https://api.github.com/repos/krico/jas/events","assignees_url":"https://api.github.com/repos/krico/jas/assignees{/user}","branches_url":"https://api.github.com/repos/krico/jas/branches{/branch}","tags_url":"https://api.github.com/repos/krico/jas/tags","blobs_url":"https://api.github.com/repos/krico/jas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krico/jas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krico/jas/git/refs{/sha}","trees_url":"https://api.github.com/repos/krico/jas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krico/jas/statuses/{sha}","languages_url":"https://api.github.com/repos/krico/jas/languages","stargazers_url":"https://api.github.com/repos/krico/jas/stargazers","contributors_url":"https://api.github.com/repos/krico/jas/contributors","subscribers_url":"https://api.github.com/repos/krico/jas/subscribers","subscription_url":"https://api.github.com/repos/krico/jas/subscription","commits_url":"https://api.github.com/repos/krico/jas/commits{/sha}","git_commits_url":"https://api.github.com/repos/krico/jas/git/commits{/sha}","comments_url":"https://api.github.com/repos/krico/jas/comments{/number}","issue_comment_url":"https://api.github.com/repos/krico/jas/issues/comments{/number}","contents_url":"https://api.github.com/repos/krico/jas/contents/{+path}","compare_url":"https://api.github.com/repos/krico/jas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krico/jas/merges","archive_url":"https://api.github.com/repos/krico/jas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krico/jas/downloads","issues_url":"https://api.github.com/repos/krico/jas/issues{/number}","pulls_url":"https://api.github.com/repos/krico/jas/pulls{/number}","milestones_url":"https://api.github.com/repos/krico/jas/milestones{/number}","notifications_url":"https://api.github.com/repos/krico/jas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krico/jas/labels{/name}","releases_url":"https://api.github.com/repos/krico/jas/releases{/id}","created_at":"2014-10-25T20:01:46Z","updated_at":"2015-04-14T05:49:59Z","pushed_at":"2015-04-15T23:47:56Z","git_url":"git://github.com/krico/jas.git","ssh_url":"git@github.com:krico/jas.git","clone_url":"https://github.com/krico/jas.git","svn_url":"https://github.com/krico/jas","homepage":null,"size":7948,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":54,"forks":0,"open_issues":54,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krico/jas/pulls/241"},"html":{"href":"https://github.com/krico/jas/pull/241"},"issue":{"href":"https://api.github.com/repos/krico/jas/issues/241"},"comments":{"href":"https://api.github.com/repos/krico/jas/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/krico/jas/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/krico/jas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krico/jas/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/krico/jas/statuses/1508dc76b75ed971b1e1d162768b6282c9084efc"}}}}