Skip to content

Commit 261e6ab

Browse files
Refine XML comments in StoreMessageTemplateDataScope
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5c832be commit 261e6ab

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/Web/Grand.Web.AdminShared/Services/StoreMessageTemplateDataScope.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@
88
namespace Grand.Web.AdminShared.Services;
99

1010
/// <summary>
11-
/// Store's <see cref="IAdminDataScope{MessageTemplate}" />. Bespoke, not the generic
12-
/// <see cref="StoreAdminDataScope{TEntity}" />: although <c>MessageTemplate</c> IS
13-
/// <c>IStoreLinkEntity</c>, ownership uses the stricter, already-established
14-
/// <see cref="AclMappingExtension.AccessToEntityByStore{T}"/> idiom (exact single-store
15-
/// ownership: <c>LimitedToStores &amp;&amp; Stores.Count == 1 &amp;&amp; Stores[0] ==
16-
/// storeId</c>) shared with the attribute family (CheckoutAttribute/ContactAttribute/
17-
/// CustomerAttribute/AddressAttribute — see <c>project_store_attributes</c> memory), not the
18-
/// generic scope's plain <c>Stores.Contains</c> check.
11+
/// Store's <see cref="IAdminDataScope{MessageTemplate}" />. Similar to
12+
/// <see cref="StoreAdminDataScope{TEntity}" /> (it also uses the strict
13+
/// <see cref="AclMappingExtension.AccessToEntityByStore{T}"/> ownership check), but bespoke
14+
/// because Store never exposes a Stores picker for message templates (always self-assigned),
15+
/// so <see cref="ShowStoreSelector"/> must be <c>false</c>.
1916
///
2017
/// A template can also be shared across N&gt;1 stores without being exclusively owned by any
2118
/// of them — visible/openable read-only, not mutable. <see cref="CanView"/> is therefore

0 commit comments

Comments
 (0)