From daf007b1e63bdd1b9516e8c2ec9550f13de60b68 Mon Sep 17 00:00:00 2001 From: Kyle Laverty Date: Mon, 13 May 2024 09:40:10 -0400 Subject: [PATCH] Updated Security - Source Generated Access Control Lists Current docs did not reflect the state of the code. This change will bring it back in line with where the Permissions setting is. --- src/routes/docs/[...2]security.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/docs/[...2]security.md b/src/routes/docs/[...2]security.md index 874118a6..8352740b 100644 --- a/src/routes/docs/[...2]security.md +++ b/src/routes/docs/[...2]security.md @@ -473,9 +473,9 @@ And, in order to assign this permission to an author upon login, you'd use the s ```cs var jwtToken = JwtBearer.CreateToken( - priviledges: u => + o => { - u.Permissions.Add(Allow.Article_Create); + o.User.Permissions.Add(Allow.Article_Create); }); ```