frontend icon indicating copy to clipboard operation
frontend copied to clipboard

visible: option on view does not hide for non set users

Open Mariusthvdb opened this issue 3 years ago • 15 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.

Describe the issue you are experiencing

using the visible option on a view does not hide the view from non listed users. Any page used in a dashboard with a specific user set for visible is displayed for all users.

Describe the behavior you expected

only show the view to a listed user

Steps to reproduce the issue

  1. make a view with the visible: option

...

What version of Home Assistant Core has the issue?

2021.11dev20211022

What was the last working version of Home Assistant Core?

dk

In which browser are you experiencing the issue with?

Safari, Chrome, FF

Which operating system are you using to run this browser?

Big sur 11.6

State of relevant entities

No response

Problem-relevant frontend configuration

title: Settings motion
path: settings_motion
visible: 3a8redacted356b63
icon: mdi:run-fast
cards:

title: Light settings
path: light_settings
icon: mdi:home-lightbulb
visible:
  - user: 3a8redacted356b63
cards:

Javascript errors shown in your browser console/inspector

none

Additional information

nothing much really, other than a discussion I started earlier for allowing 'require_admin: true' also on views.

btw, I also tested the above configs with a secret (dont want the user_id in the frontend lovelace files)

title: Settings motion
path: settings_motion
visible: !secret admin
#background: radial-gradient(crimson, skyblue)
icon: mdi:run-fast
cards:

title: Light settings
path: light_settings
icon: mdi:home-lightbulb
visible:
  - user: !secret admin
cards:

with the secret setup in secrets.yaml as:

admin: 3a8redacted356b63

Mariusthvdb avatar Oct 22 '21 09:10 Mariusthvdb

Ive found this to be a two-fold issue:

  • main issues with Kiosk-mode plugin, filed an issue in the repo https://github.com/maykar/kiosk-mode/issues/77
  • Lovelace does have an issue, because it will only work with:
title: Settings motion
path: settings_motion
visible:
  - user: !secret admin

and not with the also listed option

visible: !secret admin

which is either a bug in Lovelace, or a documentation error?

Mariusthvdb avatar Oct 29 '21 20:10 Mariusthvdb

I had the same issue now, well not me, my dad's iPhone, with HA app. His user only have visibility to one tab, for whatever reason he could view and interact with other tab, which is configured to not to show for his user.

Closing the app, and opening it again "fixes" it until happens again. It's somewhat annoying, specially when you have non-techy parents. 😅

SkateWarp avatar Nov 14 '21 14:11 SkateWarp

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 12 '22 15:02 github-actions[bot]

keep

Mariusthvdb avatar Feb 12 '22 15:02 Mariusthvdb

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 13 '22 16:05 github-actions[bot]

Keep

Mariusthvdb avatar May 13 '22 18:05 Mariusthvdb

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 13 '22 22:08 github-actions[bot]

keep

Mariusthvdb avatar Aug 15 '22 06:08 Mariusthvdb

I have faced an issue connected to this, I guess. When you hide a view for an user, if you know or guess the view url, you can still access it using the user it is hidden for.

maslyankov avatar Oct 22 '23 15:10 maslyankov

This is still an issue, I have some tabs that I set to be only visible to me. Power sockets that I only use for power monitoring that I don't want switched off, additional information about things etc, that no one else needs or cares about. To my surprise all the tabs I have set up as visible to me only, are visible to everyone.

bevanm8 avatar Oct 28 '23 07:10 bevanm8

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 26 '24 08:01 github-actions[bot]

Issue is still persistent.

maslyankov avatar Jan 26 '24 08:01 maslyankov

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 25 '24 09:04 github-actions[bot]

keep needs testing before closing

Mariusthvdb avatar Apr 25 '24 09:04 Mariusthvdb

This is a documentation issue, visible should either be a boolean or a list of users.

bramkragten avatar Apr 25 '24 13:04 bramkragten

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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 24 '24 14:07 github-actions[bot]