{"action":"created","issue":{"url":"https://api.github.com/repos/xtuple/xtuple/issues/1512","labels_url":"https://api.github.com/repos/xtuple/xtuple/issues/1512/labels{/name}","comments_url":"https://api.github.com/repos/xtuple/xtuple/issues/1512/comments","events_url":"https://api.github.com/repos/xtuple/xtuple/issues/1512/events","html_url":"https://github.com/xtuple/xtuple/issues/1512","id":34047228,"number":1512,"title":"Useful text if a list is empty due to no privileges","user":{"login":"shackbarth","id":1056617,"avatar_url":"https://avatars.githubusercontent.com/u/1056617?v=3","gravatar_id":"","url":"https://api.github.com/users/shackbarth","html_url":"https://github.com/shackbarth","followers_url":"https://api.github.com/users/shackbarth/followers","following_url":"https://api.github.com/users/shackbarth/following{/other_user}","gists_url":"https://api.github.com/users/shackbarth/gists{/gist_id}","starred_url":"https://api.github.com/users/shackbarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shackbarth/subscriptions","organizations_url":"https://api.github.com/users/shackbarth/orgs","repos_url":"https://api.github.com/users/shackbarth/repos","events_url":"https://api.github.com/users/shackbarth/events{/privacy}","received_events_url":"https://api.github.com/users/shackbarth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xtuple/xtuple/labels/fair%20game","name":"fair game","color":"009800"},{"url":"https://api.github.com/repos/xtuple/xtuple/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-22T02:45:23Z","updated_at":"2015-06-25T22:34:45Z","closed_at":null,"body":"If the user does not have the privileges to see the models of a list, then the list will show up blank. It looks just like if the list were empty. Within the list code,\r\nhttps://github.com/xtuple/xtuple/blob/v4.4.1/lib/enyo-x/source/views/list.js\r\n`this.value` is the backing collection, so `this.value.model.prototype.canView()` is the appropriate privilege check. \r\n\r\nIf it's the priv is false, it would be appropriate to bubble up an `onMessage` event to the navigator. \r\n\r\nhttps://github.com/xtuple/xtuple/blob/v4.4.1/lib/enyo-x/source/views/navigator.js#L60\r\n\r\nAdding an `onMessage` bubblable event into XV.List would be reasonable.\r\n\r\nNote that for many lists, *anyone* can see the (summarized) list model. This would only be applicable for lists, like for `SalesOrder`, with view restrictions even on the lightweight list models.\r\nhttps://github.com/xtuple/xtuple/blob/v4.4.1/enyo-client/database/orm/models/sales_order.json#L1760"},"comment":{"url":"https://api.github.com/repos/xtuple/xtuple/issues/comments/115420596","html_url":"https://github.com/xtuple/xtuple/issues/1512#issuecomment-115420596","issue_url":"https://api.github.com/repos/xtuple/xtuple/issues/1512","id":115420596,"user":{"login":"jcarlin","id":1823527,"avatar_url":"https://avatars.githubusercontent.com/u/1823527?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarlin","html_url":"https://github.com/jcarlin","followers_url":"https://api.github.com/users/jcarlin/followers","following_url":"https://api.github.com/users/jcarlin/following{/other_user}","gists_url":"https://api.github.com/users/jcarlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarlin/subscriptions","organizations_url":"https://api.github.com/users/jcarlin/orgs","repos_url":"https://api.github.com/users/jcarlin/repos","events_url":"https://api.github.com/users/jcarlin/events{/privacy}","received_events_url":"https://api.github.com/users/jcarlin/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T22:34:45Z","updated_at":"2015-06-25T22:34:45Z","body":"Also text for empty lists."}}