hotfixed currentUser and scope mispelling

This commit is contained in:
David Baldwynn 2015-11-12 18:46:11 -08:00
parent f606c12242
commit c5cc2afb63

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._currentUser._id === $scope.myform.admin._id){
$scope.hideNav = $rootScope.hideNav = false;
}
// Redirect if form is not public user IS NOT loggedin