identity-admin 1.25.4 → 1.25.6

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.
@@ -164,7 +164,7 @@ let DashboardController = DashboardController_1 = class DashboardController {
164
164
  resource.properties.filters.scopes &&
165
165
  resource.properties.filters.scopes.isAccessible) {
166
166
  if (resource.properties.filters.scopes.manual) {
167
- filter = yield resource.properties.filters.scopes.manual.handler(filter, scope);
167
+ filter = yield resource.properties.filters.scopes.manual.handler(filter, scope, currentUser);
168
168
  }
169
169
  else if (resource.properties.filters.scopes.auto) {
170
170
  const key = resource.properties.filters.scopes.auto.key;
@@ -82,6 +82,12 @@ class ResourceGenerator {
82
82
  locale: i18n_1.default.getLocale(),
83
83
  });
84
84
  }
85
+ else {
86
+ modifiedResource.properties.name = (0, i18n_1.__)({
87
+ phrase: resource.properties.name,
88
+ locale: i18n_1.default.getLocale(),
89
+ });
90
+ }
85
91
  if (!resource.showProperties) {
86
92
  modifiedResource.showProperties =
87
93
  modelConfiguration &&
@@ -189,7 +189,7 @@ interface IManualScope {
189
189
  */
190
190
  handler: (filter: {
191
191
  [key: string]: any;
192
- }, scope: string) => Promise<{
192
+ }, scope: string, currentUser: Document) => Promise<{
193
193
  [key: string]: any;
194
194
  }>;
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.25.4",
3
+ "version": "1.25.6",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",