At the first access first view is shown to everyone even the visibility is set only for some users. Users are always redirected on /lovelace/0,
If any user try to access other views changing index in the url (eg. /lovelace/1, lovelace/2 etc.), view is shown even the visibility is set to off
Set different visibility for different users
It is only used to hide views from the navigation, it will not restrict a user in any way to access a view by directly navigation to it.
Ok, but what about the first view ?
If my first view (/lovelace/0) has "Visibility: OFF" for a user, why show /lovelace/0 for that user when he opens HA webGUI ?
At the moment hiding the default_view (first view) results in showing the default_view (first view).
I have 2 Views in one dashboard :
Dashboard : Overview (default but took control)
URL View 1 : /lovelace/default_view <-- Hidden for users
URL View 2 : /lovelace/test <-- Not hidden for users
When clicking in the left panel on the "Overview" dashboard or browsing to http://%url%/config/lovelace/ always results in showing the default_view.
Tested this with versions 0.107.5, 0.107.6, 0.107.7 and with the latest 0.108.0.dev20200330 build
Can confirm this behavior. I wanted to make a page visible to just one person and have it the default view (Unlock a particular door) and everyone else drop on the default control page. I am not worried about security as much as convenience in this case, I have other things in place for that. It is just super inconvenient that HA just drops a user to the first page rather than the first page they have view permissions set to.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
At the moment hiding the default_view (first view) results in showing the default_view (first view).
I have 2 Views in one dashboard :
Dashboard : Overview (default but took control)
URL View 1 : /lovelace/default_view <-- Hidden for users
URL View 2 : /lovelace/test <-- Not hidden for users
When clicking in the left panel on the "Overview" dashboard or browsing to http://%url%/config/lovelace/ always results in showing the default_view.
Tested this with versions 0.107.5, 0.107.6, 0.107.7 and with the latest 0.108.0.dev20200330 build