{"action":"opened","issue":{"url":"https://api.github.com/repos/iomad/iomad/issues/313","repository_url":"https://api.github.com/repos/iomad/iomad","labels_url":"https://api.github.com/repos/iomad/iomad/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/iomad/iomad/issues/313/comments","events_url":"https://api.github.com/repos/iomad/iomad/issues/313/events","html_url":"https://github.com/iomad/iomad/issues/313","id":140986572,"number":313,"title":"company_user::can_see_company() is broken","user":{"login":"thepurpleblob","id":664139,"avatar_url":"https://avatars.githubusercontent.com/u/664139?v=3","gravatar_id":"","url":"https://api.github.com/users/thepurpleblob","html_url":"https://github.com/thepurpleblob","followers_url":"https://api.github.com/users/thepurpleblob/followers","following_url":"https://api.github.com/users/thepurpleblob/following{/other_user}","gists_url":"https://api.github.com/users/thepurpleblob/gists{/gist_id}","starred_url":"https://api.github.com/users/thepurpleblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepurpleblob/subscriptions","organizations_url":"https://api.github.com/users/thepurpleblob/orgs","repos_url":"https://api.github.com/users/thepurpleblob/repos","events_url":"https://api.github.com/users/thepurpleblob/events{/privacy}","received_events_url":"https://api.github.com/users/thepurpleblob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-15T14:18:33Z","updated_at":"2016-03-15T14:18:33Z","closed_at":null,"body":"This function will always return true. It checks for the $USER->profile[\"company\"] field and returns true if it doesn't exists. However, this method of identifying user companies is deprecated and so the field will never exist. \r\n\r\nThe function needs to check company affiliation in the company_users table"}}