@acorex/connectivity 21.0.0-next.1 → 21.0.0-next.3
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.
|
@@ -70,14 +70,14 @@ import { AXCalendarService } from '@acorex/core/date-time';
|
|
|
70
70
|
* This is the default behavior - modules are accessible if they're in the edition configuration.
|
|
71
71
|
*/
|
|
72
72
|
class MockModuleAccessControlService {
|
|
73
|
-
checkAccess(
|
|
73
|
+
checkAccess(manifest, context) {
|
|
74
74
|
//console.log('[Module Access Control Service]', moduleName, context.user.name);
|
|
75
75
|
if (context.user.name == 'super-root') {
|
|
76
76
|
return true;
|
|
77
77
|
}
|
|
78
78
|
// Check if module is enabled in edition
|
|
79
79
|
const enabledModules = context.edition.modulesAndFeatures?.modules || [];
|
|
80
|
-
const hasAccess = enabledModules.includes(
|
|
80
|
+
const hasAccess = enabledModules.includes(manifest.name);
|
|
81
81
|
return hasAccess;
|
|
82
82
|
}
|
|
83
83
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: MockModuleAccessControlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|