Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Auth broken in view-article view, preventing edit/remove #1172

Closed
0x24a537r9 opened this issue Jan 30, 2016 · 2 comments
Closed

Auth broken in view-article view, preventing edit/remove #1172

0x24a537r9 opened this issue Jan 30, 2016 · 2 comments

Comments

@0x24a537r9
Copy link
Contributor

I know nothing about the innards of MEAN.js's auth scheme, but on a fresh git clone, if I create a new Article with a standard sign-up (i.e. non-oauth test user), I get redirected to the view page but it has no edit/remove buttons. I inserted {{vm.authentication.user._id}} == {{vm.article.user._id}} into the DOM to debug, and despite being logged in (as evidenced by the upper-right menu item and my ability to create new articles with vm.article.user._id properly set) vm.authentication.user._id is an empty string.

I'm not sure the extent of this issue--whether it affects other views, only affects certain types of users, or has other unobserved consequences, but it definitely used to work and doesn't now.

Thoughts?

@mleanos
Copy link
Member

mleanos commented Jan 30, 2016

#1149

@0x24a537r9
Copy link
Contributor Author

Ah! Thank you very much! Feel free to mark this as a duplicate of issue #1146 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants