@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.
- package/dist/modules/VoAuth.js +2 -1
- package/package.json +1 -1
- package/src/modules/VoAuth.ts +2 -1
package/dist/modules/VoAuth.js
CHANGED
|
@@ -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
package/src/modules/VoAuth.ts
CHANGED
|
@@ -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
|
}
|