diff --git a/web/src/pages/events/EventInfo.ts b/web/src/pages/events/EventInfo.ts
index f56894965..763c17960 100644
--- a/web/src/pages/events/EventInfo.ts
+++ b/web/src/pages/events/EventInfo.ts
@@ -31,6 +31,9 @@ export class EventInfo extends LitElement {
}
getModelInfo(context: EventContext): TemplateResult {
+ if (context === null) {
+ return html`-`;
+ }
return html`
- ${gettext("UID")}: ${context.pk as string}
- ${gettext("Name")}: ${context.name as string}
@@ -89,7 +92,6 @@ export class EventInfo extends LitElement {
${this.getModelInfo(this.event.context.token as EventContext)}
`;
case "property_mapping_exception":
- case "policy_exception":
return html`
${gettext("Exception")}
@@ -100,6 +102,24 @@ export class EventInfo extends LitElement {
${this.event.context.expression}
`;
+ case "policy_exception":
+ return html`
+
+
${gettext("Binding")}
+ ${this.getModelInfo(this.event.context.binding as EventContext)}
+
+
+
${gettext("Request")}
+
+ - ${gettext("Object")}: ${this.getModelInfo((this.event.context.request as EventContext).obj as EventContext)}
+ - ${gettext("Context")}:
${JSON.stringify((this.event.context.request as EventContext).context)}
+
+
+
+
${gettext("Exception")}
+ ${this.event.context.error}
+
+
`;
case "policy_execution":
return html`