@@ -50,9 +50,9 @@ namespace Privileged;
5050/// <para>Using wildcard constants for global rules:</para>
5151/// <code>
5252/// var context = new PrivilegeBuilder()
53- /// .Allow("read", PrivilegeRule.All ) // Allow reading any subject
54- /// .Allow(PrivilegeRule.All , "Post") // Allow any action on posts
55- /// .Forbid("delete", PrivilegeRule.All ) // Forbid deleting anything
53+ /// .Allow("read", PrivilegeRule.Any ) // Allow reading any subject
54+ /// .Allow(PrivilegeRule.Any , "Post") // Allow any action on posts
55+ /// .Forbid("delete", PrivilegeRule.Any ) // Forbid deleting anything
5656/// .Build();
5757/// </code>
5858/// </example>
@@ -180,8 +180,8 @@ public PrivilegeBuilder Comparer(StringComparer comparer)
180180 /// var builder = new PrivilegeBuilder()
181181 /// .Allow("read", "Post") // Basic rule
182182 /// .Allow("edit", "Post", new[] { "title", "content" }) // Rule with qualifiers
183- /// .Allow(PrivilegeRule.All , "Comment") // Wildcard action
184- /// .Allow("manage", PrivilegeRule.All ); // Wildcard subject
183+ /// .Allow(PrivilegeRule.Any , "Comment") // Wildcard action
184+ /// .Allow("manage", PrivilegeRule.Any ); // Wildcard subject
185185 /// </code>
186186 /// </example>
187187 /// <seealso cref="Forbid(string, string, IEnumerable{string}?)"/>
@@ -239,10 +239,10 @@ public PrivilegeBuilder Allow(string action, string subject, IEnumerable<string>
239239 /// <example>
240240 /// <code>
241241 /// var builder = new PrivilegeBuilder()
242- /// .Allow(PrivilegeRule.All , "Post") // Allow all actions on posts
242+ /// .Allow(PrivilegeRule.Any , "Post") // Allow all actions on posts
243243 /// .Forbid("delete", "Post") // Except deletion
244244 /// .Forbid("edit", "Post", ["sensitive_data"]) // Forbid editing sensitive fields
245- /// .Forbid(PrivilegeRule.All , "AdminSettings"); // Forbid all actions on admin settings
245+ /// .Forbid(PrivilegeRule.Any , "AdminSettings"); // Forbid all actions on admin settings
246246 /// </code>
247247 /// </example>
248248 /// <seealso cref="Allow(string, string, IEnumerable{string}?)"/>
@@ -383,7 +383,7 @@ public PrivilegeBuilder Merge(PrivilegeModel model)
383383 /// <code>
384384 /// var builder = new PrivilegeBuilder()
385385 /// .Allow("read", "Post")
386- /// .Forbid("delete", PrivilegeRule.All );
386+ /// .Forbid("delete", PrivilegeRule.Any );
387387 ///
388388 /// var context = builder.Build();
389389 ///
0 commit comments