)]}'
{"openstack_dashboard/dashboards/project/images/views.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"de8d7691f8af7c6cd0a51db789ab6687d6839ee5","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def get_data(self):"},{"line_number":48,"context_line":"        if not policy.check(((\"image\", \"get_images\"),), self.request):"},{"line_number":49,"context_line":"            return []"},{"line_number":50,"context_line":"        prev_marker \u003d self.request.GET.get("},{"line_number":51,"context_line":"            images_tables.ImagesTable._meta.prev_pagination_param, None)"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"dab17558_8b95a5e5","line":49,"updated":"2016-05-13 18:50:46.000000000","message":"So there is an established pattern for this, see https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/users/views.py#L73  I think it\u0027s useful to point out  to the user that there are images, but they don\u0027t have permission to view them. With that knowledge, they can escalate to the cloud admin should it be necessary. It can be very confusing to know there are images, but not to see them.","commit_id":"e33133dc0748c09eec4e71670325213acf67ad41"},{"author":{"_account_id":8686,"name":"Wang Bo","email":"bo.wang@easystack.cn","username":"wangbo"},"change_message_id":"d67ed1e9a9e747b89607837b305d8d3d5c29c1e9","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def get_data(self):"},{"line_number":48,"context_line":"        if not policy.check(((\"image\", \"get_images\"),), self.request):"},{"line_number":49,"context_line":"            return []"},{"line_number":50,"context_line":"        prev_marker \u003d self.request.GET.get("},{"line_number":51,"context_line":"            images_tables.ImagesTable._meta.prev_pagination_param, None)"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"dab17558_1baf102b","line":49,"in_reply_to":"dab17558_8b95a5e5","updated":"2016-05-16 12:10:18.000000000","message":"Thanks for your comments and example.\naddress it in patch set 14.","commit_id":"e33133dc0748c09eec4e71670325213acf67ad41"}],"openstack_dashboard/static/app/core/images/table/images-table.html":[{"author":{"_account_id":17172,"name":"Kenji Ishii","email":"ken-ishii@sx.jp.nec.com","username":"kenji-ishii"},"change_message_id":"56176f3d1d7294bba170cd9ba2168018a8ea07a6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003cdiv ng-controller\u003d\"horizon.app.core.images.table.ImagesController as table\"\u003e"},{"line_number":2,"context_line":"\u003ctable hz-if-policies\u003d\u0027table.policy\u0027"},{"line_number":3,"context_line":"       hz-table ng-cloak"},{"line_number":4,"context_line":"       st-table\u003d\"table.images\""},{"line_number":5,"context_line":"       st-safe-src\u003d\"table.imagesSrc\""}],"source_content_type":"text/html","patch_set":9,"id":"7af24918_f3e10b9c","line":2,"updated":"2016-03-07 03:41:44.000000000","message":"Indentation is incorrect.","commit_id":"cb1925671a21b90df6bc02c15331ca9c88439e3f"},{"author":{"_account_id":8686,"name":"Wang Bo","email":"bo.wang@easystack.cn","username":"wangbo"},"change_message_id":"62dee081c52a85712873e87c4017f49fcf951f0a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003cdiv ng-controller\u003d\"horizon.app.core.images.table.ImagesController as table\"\u003e"},{"line_number":2,"context_line":"\u003ctable hz-if-policies\u003d\u0027table.policy\u0027"},{"line_number":3,"context_line":"       hz-table ng-cloak"},{"line_number":4,"context_line":"       st-table\u003d\"table.images\""},{"line_number":5,"context_line":"       st-safe-src\u003d\"table.imagesSrc\""}],"source_content_type":"text/html","patch_set":9,"id":"5aef4532_6ed86454","line":2,"in_reply_to":"7af24918_f3e10b9c","updated":"2016-03-26 05:14:32.000000000","message":"Done in patch set 10","commit_id":"cb1925671a21b90df6bc02c15331ca9c88439e3f"}],"openstack_dashboard/static/app/core/images/table/images.controller.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"d486dbf32c0019b9d1a2f5856561e862080d98a5","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      // if user has permission"},{"line_number":85,"context_line":"      // fetch table data and populate it"},{"line_number":86,"context_line":"      var rules \u003d [[\u0027image\u0027, \u0027get_images\u0027]];"},{"line_number":87,"context_line":"      policy.ifAllowed({ rules: rules }).then(policySuccess, policyFailed);"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    function policySuccess() {"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a57f1b5_11d60ef1","line":87,"updated":"2016-02-12 20:18:11.000000000","message":"I think we\u0027ll be reworking how this is done a bit with the resource registration service, but I guess this can go here for now.","commit_id":"0d2856f1831350b61fff5aa34c431f3ab7b981be"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"c1be0f0f2c8baff0ed264c8e3bd7bd191122350a","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      // if user has permission"},{"line_number":85,"context_line":"      // fetch table data and populate it"},{"line_number":86,"context_line":"      var rules \u003d [[\u0027image\u0027, \u0027get_images\u0027]];"},{"line_number":87,"context_line":"      policy.ifAllowed({ rules: rules }).then(policySuccess, policyFailed);"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    function policySuccess() {"}],"source_content_type":"text/javascript","patch_set":7,"id":"dae33548_8dd1405a","line":87,"in_reply_to":"3a57f1b5_11d60ef1","updated":"2016-02-16 17:52:01.000000000","message":"I would suggest that we define the policy here but use hz-if-allowed directly into the html. The only downside is that you won\u0027t get a toasty message. But to be fair, you shouldn\u0027t see the link at all if you don\u0027t have permission.","commit_id":"0d2856f1831350b61fff5aa34c431f3ab7b981be"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"26284a868f1203e77ad1c2a963420297f6cf08ec","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      // if user has permission"},{"line_number":85,"context_line":"      // fetch table data and populate it"},{"line_number":86,"context_line":"      var rules \u003d [[\u0027image\u0027, \u0027get_images\u0027]];"},{"line_number":87,"context_line":"      policy.ifAllowed({ rules: rules }).then(policySuccess, policyFailed);"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    function policySuccess() {"}],"source_content_type":"text/javascript","patch_set":7,"id":"dae33548_fe48d88c","line":87,"in_reply_to":"dae33548_8dd1405a","updated":"2016-02-19 06:27:46.000000000","message":"It would almost be like we should have a standard forbidden html template that displays if hz-if doesn\u0027t evaluate...  hz-if is actually harder to spoof, because it eats itself.","commit_id":"0d2856f1831350b61fff5aa34c431f3ab7b981be"},{"author":{"_account_id":8686,"name":"Wang Bo","email":"bo.wang@easystack.cn","username":"wangbo"},"change_message_id":"7d0ba1ac3f8d34fd41455b728a2ea54b683f4e04","unresolved":false,"context_lines":[{"line_number":84,"context_line":"      // if user has permission"},{"line_number":85,"context_line":"      // fetch table data and populate it"},{"line_number":86,"context_line":"      var rules \u003d [[\u0027image\u0027, \u0027get_images\u0027]];"},{"line_number":87,"context_line":"      policy.ifAllowed({ rules: rules }).then(policySuccess, policyFailed);"},{"line_number":88,"context_line":"    }"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    function policySuccess() {"}],"source_content_type":"text/javascript","patch_set":7,"id":"7af24918_f0bb0cc2","line":87,"in_reply_to":"dae33548_8dd1405a","updated":"2016-03-04 08:46:04.000000000","message":"Thanks for your comments. Done in patch set 8","commit_id":"0d2856f1831350b61fff5aa34c431f3ab7b981be"}]}
