title: Roles - Parse.com Javascript
body: <p>At the moment I have javascript that allows all users from the (_User) table to log in. I have set up a Role called (Admins) within the role table and assigned one user to this role. Would this be an if statement?</p>
  
  <p>At the moment this is how the user logs in successfully </p>
  
  <pre><code>$scope.logIn = function(form) {
  Parse.User.logIn(form.username, form.password, {
    success: function(user) {
      $scope.currentUser = user;
      $scope.$apply();
      window.location.href = "TEST.html";
    },
  </code></pre>