hotfixed currentUser() bug

This commit is contained in:
David Baldwynn 2015-11-12 18:42:33 -08:00
parent a996e4216b
commit 8334eb332f
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -8,7 +8,7 @@ angular.module('forms').controller('SubmitFormController', ['$scope', '$rootScop
if(!$scope.myform.isLive){
// Show navbar if form is not public AND user IS loggedin
if($scope.authentication.isAuthenticated() && $scope.currentUser()._id === $scpoe.myform.admin._id){
if($scope.authentication.isAuthenticated() && $scope.authentication._currentUser._id === $scpoe.myform.admin._id){
$scope.hideNav = $rootScope.hideNav = false;
}
// Redirect if form is not public user IS NOT loggedin