linnovate/mean — pull request #615 by enkodellc (2014-06-23 04:39:39+00:00)
Title: incorrect logic for isAdmin

I was failing authentication this "~window.user.roles.indexOf('admin');" seems completely incorrect.
->Negate the index of ('admin') I kept getting -1 for the isAdmin function and it should have been true. Or am I missing something here?