PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/in…/routePermissionInterceptor.js

js pedagogium.pl collected 2026-10-04 13:34:05 UTC 598 bytes, 19 lines download raw bytes

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.