seimin пре 11 месеци
родитељ
комит
6f22e49de8
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      assets/js/controllers/mainCtrl.js

+ 1 - 0
assets/js/controllers/mainCtrl.js

@@ -3395,6 +3395,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
3395 3395
     //     }
3396 3396
     // }
3397 3397
     $rootScope.getpending = function () {
3398
+      if(!loginUser){return;}
3398 3399
       if ($rootScope.userMenus && $rootScope.userMenus.length > 0) {
3399 3400
         if ($rootScope.user.group) {
3400 3401
           var groupArr = [];