cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
26 stars 45 forks source link

Mention cuba.web.allowAnonymousAccess on the page describing @Route#root #650

Closed alexbudarov closed 3 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

These two pages: https://doc.cuba-platform.com/manual-7.1/url_routing.html https://doc.cuba-platform.com/manual-7.1/gui_anonymous_access.html

are related semantically but first one doesn't have link to the second.

https://doc.cuba-platform.com/manual-7.1/url_routing.html#url_route_registration Here @Route parameters are described:

root is the boolean property which enables to specify whether a route is registered for the root screen (like Login screen or Main screen). The default value is false.

Here we should show a notification telling that if you create root screen other than default "login" one and make it available by link without login - you should make it available for the anonymous user.

1) You should turn on cuba.web.allowAnonymousAccess property. Otherwise the user will always be re-directed to the "/app/#login" link, and your root screen will not be opened by URL.

2) Also such root screen should be available to the anonymous user through roles.

We have already at least one person who was confused.