1/** 2 * Logika odpowiedzialna za przekierowanie na stronÄ logowania w sytuacji, gdy użytkownik nie posiada 3 * uprawnieÅ do zadanej strony. 4 */ 5angular.module('irk') 6 .run(function ($rootScope, $location, routePermissionFactory) { 7 $rootScope.$on('$routeChangeStart', function (event, next) { 8 if(next.redirectTo == '/') { 9 return; 10 } 11 return routePermissionFactory.checkRoutePermission(next, false) 12 .then(function(hasPermission) { 13 if(!hasPermission) { 14 $location.path('/Logowanie'); 15 event.preventDefault(); 16 } 17 }); 18 }); 19 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.