@vocollege/app 0.0.119 → 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
  }
@@ -67,5 +67,5 @@ export declare const getObjValue: (obj: any, ...props: string[]) => any;
67
67
  */
68
68
  export declare const convertSvgToImage: (url: string, width?: null | number, height?: null | number, format?: string, quality?: number) => Promise<unknown>;
69
69
  export declare const getCollegeUrl: (item: any, origin?: string) => string;
70
- export declare const hasSettings: (item: any, settings?: never[]) => boolean;
70
+ export declare const hasSettings: (item: any, settings?: string[]) => boolean;
71
71
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.119",
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
  }
@@ -450,7 +450,7 @@ export const getCollegeUrl = (item: any, origin?: string) => {
450
450
  return currentUrl.protocol + "//" + url.join(".");
451
451
  };
452
452
 
453
- export const hasSettings = (item: any, settings = []) => {
453
+ export const hasSettings = (item: any, settings: string[] = []) => {
454
454
  if (!item.settings) {
455
455
  return false;
456
456
  }