@felloh-org/lambda-wrapper 1.1.48 → 1.1.49
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.
|
@@ -51,7 +51,7 @@ class AuthenticationService extends _dependencyAware.default {
|
|
|
51
51
|
await this.initialise();
|
|
52
52
|
const response = [];
|
|
53
53
|
|
|
54
|
-
for
|
|
54
|
+
for (const organisation of user.organisations) {
|
|
55
55
|
const orgs = await this.organisationRepository.findDescendants(organisation, {
|
|
56
56
|
relations: ['parent']
|
|
57
57
|
});
|
|
@@ -90,7 +90,7 @@ class AuthenticationService extends _dependencyAware.default {
|
|
|
90
90
|
return roles.indexOf(role) !== -1;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Check
|
|
93
|
+
* Check a users role and organisation access
|
|
94
94
|
* @param organisationID
|
|
95
95
|
* @param roles
|
|
96
96
|
* @returns {Promise<boolean>}
|