Browse Source

Merge pull request #25414 from abpframework/auto-merge/rel-10-4/4565

Merge branch dev with rel-10.4
pull/25416/head
Volosoft Agent 5 days ago
committed by GitHub
parent
commit
2bcdebd8ff
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/release-info/migration-guides/abp-10-4.md

2
docs/en/release-info/migration-guides/abp-10-4.md

@ -170,7 +170,7 @@ Configure<AbpPhoneNumberTwoFactorTokenProviderOptions>(options =>
```
- If your engine derives from `TemplateRenderingEngineBase`, no action is required for compilation; however, override `IsSandboxed => true` if your engine is genuinely sandboxed so callers (such as the Text Template Management module) treat its templates as safe to edit by non-developer users.
- Scriban templates that invoke methods on the model (e.g. `{{ model.SomeMethod }}`) or read fields stop working because the engine now whitelists public properties only. Templates that access only properties (the typical Scriban usage) are unaffected. To restore the previous behavior in custom hosts, derive from `ScribanTemplateRenderingEngine` and override `IsMemberAllowed` to allow methods or fields:
- Scriban templates that invoke methods on the model (e.g. `{%{{{ model.SomeMethod }}}%}`) or read fields stop working because the engine now whitelists public properties only. Templates that access only properties (the typical Scriban usage) are unaffected. To restore the previous behavior in custom hosts, derive from `ScribanTemplateRenderingEngine` and override `IsMemberAllowed` to allow methods or fields:
```csharp
protected override bool IsMemberAllowed(MemberInfo member) => true;

Loading…
Cancel
Save