hotfixed currentUser() bug
This commit is contained in:
parent
a996e4216b
commit
8334eb332f
4
public/dist/application.min.js
vendored
4
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user