{"action":"closed","issue":{"url":"https://api.github.com/repos/searchisko/searchisko/issues/218","labels_url":"https://api.github.com/repos/searchisko/searchisko/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/searchisko/searchisko/issues/218/comments","events_url":"https://api.github.com/repos/searchisko/searchisko/issues/218/events","html_url":"https://github.com/searchisko/searchisko/issues/218","id":58347853,"number":218,"title":"Registered query: Required authorization if only `default.sys_type` is configured.","user":{"login":"lukas-vlcek","id":205174,"avatar_url":"https://avatars.githubusercontent.com/u/205174?v=3","gravatar_id":"","url":"https://api.github.com/users/lukas-vlcek","html_url":"https://github.com/lukas-vlcek","followers_url":"https://api.github.com/users/lukas-vlcek/followers","following_url":"https://api.github.com/users/lukas-vlcek/following{/other_user}","gists_url":"https://api.github.com/users/lukas-vlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-vlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-vlcek/subscriptions","organizations_url":"https://api.github.com/users/lukas-vlcek/orgs","repos_url":"https://api.github.com/users/lukas-vlcek/repos","events_url":"https://api.github.com/users/lukas-vlcek/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-vlcek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/searchisko/searchisko/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/searchisko/searchisko/milestones/7","labels_url":"https://api.github.com/repos/searchisko/searchisko/milestones/7/labels","id":761176,"number":7,"title":"2.0.0","description":"- Improved security and content visibility model\r\n- Upgrading to Elasticsearch 1.x\r\n- Breaking changes in search API\r\n- New API (registered queries)\r\n","creator":{"login":"lukas-vlcek","id":205174,"avatar_url":"https://avatars.githubusercontent.com/u/205174?v=3","gravatar_id":"","url":"https://api.github.com/users/lukas-vlcek","html_url":"https://github.com/lukas-vlcek","followers_url":"https://api.github.com/users/lukas-vlcek/followers","following_url":"https://api.github.com/users/lukas-vlcek/following{/other_user}","gists_url":"https://api.github.com/users/lukas-vlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-vlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-vlcek/subscriptions","organizations_url":"https://api.github.com/users/lukas-vlcek/orgs","repos_url":"https://api.github.com/users/lukas-vlcek/repos","events_url":"https://api.github.com/users/lukas-vlcek/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-vlcek/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":56,"state":"open","created_at":"2014-08-21T09:20:01Z","updated_at":"2015-02-24T13:16:50Z","due_on":"2015-02-27T23:00:00Z","closed_at":null},"comments":0,"created_at":"2015-02-20T12:47:58Z","updated_at":"2015-02-24T13:16:50Z","closed_at":"2015-02-24T13:16:50Z","body":"When registered query is configured to match only `sys_type` in the `default` section then it requires authorization while it should not. Example of such configuration:\r\n\r\n    \"default\": {\r\n        \"sys_type\": \"blogpost\"\r\n    }\r\n\r\nBlog posts are not restricted to any role, still it is giving output:\r\n\r\n    Required authorization {0}."}}