Skip to content

Commit dbeaa4e

Browse files
caaladormshabarovrusselljtdyer
authored
fix: add note on access requirement in layout (vaadin#3778)
* fix: add note on access requirement in layout Add note for access controll of layout when access protection in use. * fix text * First pass at editing new text. --------- Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com> Co-authored-by: Russell J.T. Dyer <6652767+russelljtdyer@users.noreply.github.com>
1 parent 76e2a71 commit dbeaa4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/flow/routing/layout.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class MainLayout extends Div
2525
}
2626
----
2727

28+
If the application is using access protection, the view access is checked for the Layout, as well as the view. To make the layout accessible, add [annotationname]`@AnonymousAllowed` -- or some other access annotation -- on the `MainLayout` so that the request is not denied.
29+
2830
[annotationname]`@Route` and [annotationname]`@RouteAlias` each contain an annotation attribute called, `autoLayout`. Setting that attribute to false will stop automatic layout; it will ignore any [annotationname]`@Layout` matching the route. Giving a class for the `layout` method in [annotationname]`@Route` also disables automatic layout and uses the one given.
2931

3032
.Ignore Automatic Layout

0 commit comments

Comments
 (0)