@servicelabsco/slabs-access-manager 0.0.9 → 0.0.11
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/access/entities/dashboard.component.entity.d.ts +1 -1
- package/dist/access/entities/dashboard.component.entity.js +1 -1
- package/dist/access/entities/dashboard.component.entity.js.map +1 -1
- package/dist/access/libraries/process.dashboard.report.js +1 -1
- package/dist/access/libraries/process.dashboard.report.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { CustomReportEntity } from './custom.report.entity';
|
|
|
4
4
|
import { DashboardEntity } from './dashboard.entity';
|
|
5
5
|
export declare class DashboardComponentEntity extends CommonEntity {
|
|
6
6
|
dashboard_id: number;
|
|
7
|
-
|
|
7
|
+
identifier: string;
|
|
8
8
|
custom_report_id: number;
|
|
9
9
|
active: boolean;
|
|
10
10
|
properties: any;
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, typeorm_1.Column)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
], DashboardComponentEntity.prototype, "
|
|
27
|
+
], DashboardComponentEntity.prototype, "identifier", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)(),
|
|
30
30
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.component.entity.js","sourceRoot":"","sources":["../../../src/access/entities/dashboard.component.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,mGAA6F;AAC7F,iEAA4D;AAC5D,yDAAqD;AAS9C,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,sCAAY;CAuBzD,CAAA;AAtBG;IAAC,IAAA,gBAAM,GAAE;;8DACY;AAErB;IAAC,IAAA,gBAAM,GAAE;;
|
|
1
|
+
{"version":3,"file":"dashboard.component.entity.js","sourceRoot":"","sources":["../../../src/access/entities/dashboard.component.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAsE;AACtE,qCAAgE;AAChE,mGAA6F;AAC7F,iEAA4D;AAC5D,yDAAqD;AAS9C,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,sCAAY;CAuBzD,CAAA;AAtBG;IAAC,IAAA,gBAAM,GAAE;;8DACY;AAErB;IAAC,IAAA,gBAAM,GAAE;;4DACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;kEACgB;AAEzB;IAAC,IAAA,gBAAM,GAAE;;wDACO;AAEhB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;4DACC;AAEhB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,oEAA+B;4DAAC;AAG5C;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAAY,kCAAe;2DAAC;AAEnG;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BAAgB,yCAAkB;+DAAC;AAtBxG,wBAAwB;IADpC,IAAA,gBAAM,EAAC,0BAA0B,CAAC;GACtB,wBAAwB,CAuBpC;AAvBY,4DAAwB"}
|
|
@@ -18,7 +18,7 @@ class ProcessDashboardReport {
|
|
|
18
18
|
const reports = await entities_1.DashboardComponentEntity.find({ where: { dashboard_id: dashboard.id, active: true } });
|
|
19
19
|
const r = [];
|
|
20
20
|
for (const report of reports) {
|
|
21
|
-
const hasAccess = await this.hasReportAccess(report.
|
|
21
|
+
const hasAccess = await this.hasReportAccess(report.identifier);
|
|
22
22
|
if (hasAccess)
|
|
23
23
|
r.push(report);
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.dashboard.report.js","sourceRoot":"","sources":["../../../src/access/libraries/process.dashboard.report.ts"],"names":[],"mappings":";;;AAAA,oFAAqF;AACrF,0CAAwE;AACxE,MAAa,sBAAsB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;
|
|
1
|
+
{"version":3,"file":"process.dashboard.report.js","sourceRoot":"","sources":["../../../src/access/libraries/process.dashboard.report.ts"],"names":[],"mappings":";;;AAAA,oFAAqF;AACrF,0CAAwE;AACxE,MAAa,sBAAsB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAI,CAAC;IAE9D,KAAK,CAAC,OAAO,CAAC,UAAkB;QAC5B,MAAM,SAAS,GAAG,MAAM,0BAAe,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QAE3E,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,uCAAa,EAAE,CAAC;QAC1C,SAAS,CAAC,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAExD,OAAO,SAAS,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,SAA0B;QAC/C,MAAM,OAAO,GAAG,MAAM,mCAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAE7G,MAAM,CAAC,GAA+B,EAAE,CAAC;QAEzC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAEhE,IAAI,SAAS;gBAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACjC;QAED,OAAO,CAAC,CAAC;IACb,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,UAAkB;QAC5C,MAAM,MAAM,GAAG,MAAM,sCAAY,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAExG,IAAI,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAE7C,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACtE,CAAC;CACJ;AAlCD,wDAkCC"}
|
package/package.json
CHANGED