{"action":"created","issue":{"url":"https://api.github.com/repos/18F/openopps-platform/issues/1264","repository_url":"https://api.github.com/repos/18F/openopps-platform","labels_url":"https://api.github.com/repos/18F/openopps-platform/issues/1264/labels{/name}","comments_url":"https://api.github.com/repos/18F/openopps-platform/issues/1264/comments","events_url":"https://api.github.com/repos/18F/openopps-platform/issues/1264/events","html_url":"https://github.com/18F/openopps-platform/pull/1264","id":141996432,"number":1264,"title":"Add Agency Admin User Role","user":{"login":"cwarden","id":387035,"avatar_url":"https://avatars.githubusercontent.com/u/387035?v=3","gravatar_id":"","url":"https://api.github.com/users/cwarden","html_url":"https://github.com/cwarden","followers_url":"https://api.github.com/users/cwarden/followers","following_url":"https://api.github.com/users/cwarden/following{/other_user}","gists_url":"https://api.github.com/users/cwarden/gists{/gist_id}","starred_url":"https://api.github.com/users/cwarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwarden/subscriptions","organizations_url":"https://api.github.com/users/cwarden/orgs","repos_url":"https://api.github.com/users/cwarden/repos","events_url":"https://api.github.com/users/cwarden/events{/privacy}","received_events_url":"https://api.github.com/users/cwarden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/18F/openopps-platform/labels/in%20progress","name":"in progress","color":"dddddd"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-18T22:56:04Z","updated_at":"2016-03-31T21:56:21Z","closed_at":"2016-03-31T21:56:21Z","pull_request":{"url":"https://api.github.com/repos/18F/openopps-platform/pulls/1264","html_url":"https://github.com/18F/openopps-platform/pull/1264","diff_url":"https://github.com/18F/openopps-platform/pull/1264.diff","patch_url":"https://github.com/18F/openopps-platform/pull/1264.patch"},"body":"Add new Agency Admin user role.  Agency admins will be able to manage\r\ntheir agency (not yet implemented).\r\n\r\nUpdate the database schema and User model to add an isAgencyAdmin flag\r\nto users.\r\n\r\nUpdate the User Management admin page to allow admins to toggle the\r\nAgency Admin permission.\r\n\r\nUpdate the Sails Admin controller with a new placeholder `agency` API\r\nendpoint.\r\n\r\nAdd a new `agencyAdmin` policy to restrict access to admins and agency\r\nadmins.\r\n\r\nUpdate the `protectAdmin` policy to only allow admins to modify the\r\n`isAgencyAdmin` flag.\r\n\r\nAdd a new placeholder My Agency page at /admin/agencies/:id.\r\n\r\nUpdate the Backbone admin main view to redirect Agency Admin users to\r\nthe new My Agency page.\r\n\r\n*See #1229 and https://micropurchase.18f.gov/auctions/20*"},"comment":{"url":"https://api.github.com/repos/18F/openopps-platform/issues/comments/204147641","html_url":"https://github.com/18F/openopps-platform/pull/1264#issuecomment-204147641","issue_url":"https://api.github.com/repos/18F/openopps-platform/issues/1264","id":204147641,"user":{"login":"ultrasaurus","id":41906,"avatar_url":"https://avatars.githubusercontent.com/u/41906?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrasaurus","html_url":"https://github.com/ultrasaurus","followers_url":"https://api.github.com/users/ultrasaurus/followers","following_url":"https://api.github.com/users/ultrasaurus/following{/other_user}","gists_url":"https://api.github.com/users/ultrasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrasaurus/subscriptions","organizations_url":"https://api.github.com/users/ultrasaurus/orgs","repos_url":"https://api.github.com/users/ultrasaurus/repos","events_url":"https://api.github.com/users/ultrasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/ultrasaurus/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T21:56:21Z","updated_at":"2016-03-31T21:56:21Z","body":"merged with: https://github.com/18F/openopps-platform/pull/1268"}}