Quellcode durchsuchen

redirect to login if no permissions

develop
Robin Thoni vor 10 Jahren
Ursprung
Commit
785e636f31
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 3
    0
      admin/controllers/home.controller.js
  2. 3
    0
      camotion/controllers/home.controller.js

+ 3
- 0
admin/controllers/home.controller.js Datei anzeigen

11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
12
                 $state.go('commands');
12
                 $state.go('commands');
13
             }
13
             }
14
+            else {
15
+                $state.go('login');
16
+            }
14
     }]);
17
     }]);

+ 3
- 0
camotion/controllers/home.controller.js Datei anzeigen

11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
11
             else if (luticateAuthCache.hasEffectivePermission("CAMOTION_COMMAND_GET")) {
12
                 $state.go('commands');
12
                 $state.go('commands');
13
             }
13
             }
14
+            else {
15
+                $state.go('login');
16
+            }
14
     }]);
17
     }]);

Laden…
Abbrechen
Speichern