@vocollege/app 0.0.120 → 0.0.121

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.
@@ -371,7 +371,8 @@ var VoAuth = /** @class */ (function (_super) {
371
371
  case 1:
372
372
  response = _a.sent();
373
373
  this.user = response.data.data;
374
- this.ability.update(this.user.permissions);
374
+ // this.ability.update(this.user.permissions);
375
+ this.ability.update([{ action: "test", subject: "Test" }]);
375
376
  if (VoGroups_1.default.getCurrent(true)) {
376
377
  this.globalAbility.update(this.user.globalPermissions);
377
378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.120",
3
+ "version": "0.0.121",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -250,7 +250,8 @@ class VoAuth extends VoBase {
250
250
  if (!this.user || force) {
251
251
  const response = await VoApi.getUser();
252
252
  this.user = response.data.data;
253
- this.ability.update(this.user.permissions);
253
+ // this.ability.update(this.user.permissions);
254
+ this.ability.update([{ action: "test", subject: "Test" }]);
254
255
  if (VoGroups.getCurrent(true)) {
255
256
  this.globalAbility.update(this.user.globalPermissions);
256
257
  }