Browse Source

redirect to login if no permissions

develop
Robin Thoni 8 years ago
parent
commit
785e636f31
2 changed files with 6 additions and 0 deletions
  1. 3
    0
      admin/controllers/home.controller.js
  2. 3
    0
      camotion/controllers/home.controller.js

+ 3
- 0
admin/controllers/home.controller.js View File

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 View File

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
     }]);

Loading…
Cancel
Save