Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$scope.org not being set when an admin accesses the profile view #19

Open
jsachs opened this issue Jan 25, 2016 · 0 comments
Open

$scope.org not being set when an admin accesses the profile view #19

jsachs opened this issue Jan 25, 2016 · 0 comments

Comments

@jsachs
Copy link
Contributor

jsachs commented Jan 25, 2016

At line 20 of the profile.js controller, there is the following check:

if (user.roleID === greyscaleGlobals.userRoles.admin.id)

However, in greyscale-globals.js, it looks like the storage of user role IDs was changed and not updated in the controllers. Am I correct in thinking this is a bug?

As an aside, will NTR be writing any client unit tests? I discovered this issue by writing some sample tests.

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

No branches or pull requests

1 participant