Skip to content

Commit fc89194

Browse files
Update policies.md (#18949)
* Update policies.md * Update policies.md
1 parent 1598836 commit fc89194

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aspnetcore/security/authorization/policies.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: rick-anderson
44
description: Learn how to create and use authorization policy handlers for enforcing authorization requirements in an ASP.NET Core app.
55
ms.author: riande
66
ms.custom: mvc
7-
ms.date: 04/15/2020
7+
ms.date: 6/15/2020
88
no-loc: [Blazor, "Identity", "Let's Encrypt", Razor, SignalR]
99
uid: security/authorization/policies
1010
---
@@ -116,7 +116,9 @@ Policies are applied to Razor Pages by using the `[Authorize]` attribute with th
116116

117117
[!code-csharp[](policies/samples/PoliciesAuthApp2/Pages/AlcoholPurchase.cshtml.cs?name=snippet_AlcoholPurchaseModelClass&highlight=4)]
118118

119-
Policies can also be applied to Razor Pages by using an [authorization convention](xref:security/authorization/razor-pages-authorization).
119+
Policies can ***not*** be applied at the Razor Page handler level, they must be applied to the Page.
120+
121+
Policies can be applied to Razor Pages by using an [authorization convention](xref:security/authorization/razor-pages-authorization).
120122

121123
## Requirements
122124

0 commit comments

Comments
 (0)