{"action":"opened","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/111","repository_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/111/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/capstone-project/issues/111/events","html_url":"https://github.com/ga-wdi-boston/capstone-project/issues/111","id":146100938,"number":111,"title":"New method added to Auth service isn't working correctly","user":{"login":"jpfriedman18","id":11454266,"avatar_url":"https://avatars.githubusercontent.com/u/11454266?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfriedman18","html_url":"https://github.com/jpfriedman18","followers_url":"https://api.github.com/users/jpfriedman18/followers","following_url":"https://api.github.com/users/jpfriedman18/following{/other_user}","gists_url":"https://api.github.com/users/jpfriedman18/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfriedman18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfriedman18/subscriptions","organizations_url":"https://api.github.com/users/jpfriedman18/orgs","repos_url":"https://api.github.com/users/jpfriedman18/repos","events_url":"https://api.github.com/users/jpfriedman18/events{/privacy}","received_events_url":"https://api.github.com/users/jpfriedman18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T20:27:28Z","updated_at":"2016-04-05T20:27:28Z","closed_at":null,"body":"On my /prompts route, I am trying to have different link-to buttons depending on the type of user logged in:\r\n```{{#if isTeacher}}\r\n<h5>{{#link-to \"teacher-landing\"}}Back{{/link-to}}</h5>\r\n{{else}}\r\n<h5>{{#link-to \"student-landing\"}}Back{{/link-to}}</h5>\r\n{{/if}}\r\n```\r\nI created isTeacher in the Auth service:\r\n```isTeacher: Ember.computed.equal('credentials.profileable_type', 'Teacher'),```\r\n\r\nand injected it into my /prompts route:\r\n```  auth: Ember.inject.service(),\r\n  isTeacher: Ember.computed.alias('auth.isTeacher'),\r\n```\r\n\r\nHowever, regardless of what type of user is logged in, the Back button on the Prompts route always links to the student-landing route, meaning that isTeacher is falsey. Unsure of how to proceed."}}