@vocollege/app 0.0.89 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -762,7 +762,7 @@
762
762
  "yh": "YH-utbildning"
763
763
  },
764
764
  "education": {
765
- "vardOchOmsorg": "Vård- och omsorgutbildning",
765
+ "vardOchOmsorg": "Vård- och omsorgsutbildning",
766
766
  "barnFritid": "Barn- och fritidsutbildning med social inriktning"
767
767
  },
768
768
  "helpTexts": {
@@ -32,7 +32,7 @@ var VoRouter = /** @class */ (function () {
32
32
  var currentPath = this.getPath(window.location.pathname, 0);
33
33
  // const routes = VoConfig.getConfigByKey('routes');
34
34
  var routes = this.getRoutes();
35
- return routes.hasOwnProperty(currentPath) && routes[currentPath].protected;
35
+ return routes.hasOwnProperty(currentPath) && routes[currentPath].abilities;
36
36
  };
37
37
  VoRouter.prototype.isAuthRoute = function () {
38
38
  var currentPath = this.getPath(window.location.pathname, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.89",
3
+ "version": "0.0.91",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -762,7 +762,7 @@
762
762
  "yh": "YH-utbildning"
763
763
  },
764
764
  "education": {
765
- "vardOchOmsorg": "Vård- och omsorgutbildning",
765
+ "vardOchOmsorg": "Vård- och omsorgsutbildning",
766
766
  "barnFritid": "Barn- och fritidsutbildning med social inriktning"
767
767
  },
768
768
  "helpTexts": {
@@ -30,7 +30,7 @@ class VoRouter {
30
30
  const currentPath = this.getPath(window.location.pathname, 0);
31
31
  // const routes = VoConfig.getConfigByKey('routes');
32
32
  const routes = this.getRoutes();
33
- return routes.hasOwnProperty(currentPath) && routes[currentPath].protected;
33
+ return routes.hasOwnProperty(currentPath) && routes[currentPath].abilities;
34
34
  }
35
35
  isAuthRoute() {
36
36
  const currentPath = this.getPath(window.location.pathname, 0);