identity-admin 1.25.3 → 1.25.5

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;
@@ -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
  }
@@ -512,6 +512,16 @@ export interface IResourceFile {
512
512
  * @default false
513
513
  */
514
514
  displayEditPageInShowPage?: boolean;
515
+ /**
516
+ * Specify the path of image to be shown beside the name in the reference options
517
+ * @default undefined
518
+ */
519
+ imageOnReferencePath?: string;
520
+ /**
521
+ * The option to disable displaying the image beside the name in the reference options
522
+ * @default false
523
+ */
524
+ disableImageOnReference?: boolean;
515
525
  /**
516
526
  * An object for any extra data need to be sent with the resource file
517
527
  * @default undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.25.3",
3
+ "version": "1.25.5",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",