瀏覽代碼

Update expression-based.adoc

Removed a duplicate paragraph that was phrased a bit differently.
Dmitriy Grushin 2 年之前
父節點
當前提交
2b36499700
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc

+ 0 - 4
docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc

@@ -396,10 +396,6 @@ fun doSomething(contact: Contact?)
 ----
 ====
 
-Here we are accessing another built-in expression, `authentication`, which is the `Authentication` stored in the security context.
-You can also access its "principal" property directly, using the expression `principal`.
-The value will often be a `UserDetails` instance, so you might use an expression like `principal.username` or `principal.enabled`.
-
 .[[el-pre-post-annotations-post]]
 Here, we access another built-in expression, `authentication`, which is the `Authentication` stored in the security context.
 You can also access its `principal` property directly, by using the `principal` expression.