Pārlūkot izejas kodu

redirect to login if no permissions

develop
Robin Thoni 9 gadus atpakaļ
vecāks
revīzija
785e636f31

+ 3
- 0
admin/controllers/home.controller.js Parādīt failu

@@ -11,4 +11,7 @@ angular.module('camotionAdmin')
11 11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
12 12
                 $state.go('commands');
13 13
             }
14
+            else {
15
+                $state.go('login');
16
+            }
14 17
     }]);

+ 3
- 0
camotion/controllers/home.controller.js Parādīt failu

@@ -11,4 +11,7 @@ angular.module('camotion')
11 11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
12 12
                 $state.go('commands');
13 13
             }
14
+            else {
15
+                $state.go('login');
16
+            }
14 17
     }]);

Notiek ielāde…
Atcelt
Saglabāt