Role based auth example in AngularJS