@vocollege/app 0.0.89 → 0.0.90

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.
@@ -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.90",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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);