-
Notifications
You must be signed in to change notification settings - Fork 13
Exceptions do not hide items #4
Comments
@DanDon
If it still doesnt work - check some advises here and here and also take a look at the console for some possible errors. P.S.: "clear cache and hard-refresh" menu appears if you right-click on the refresh button while Dev Tools panel is open(F12) |
Installing the new version and hard reloading the page (or even using the page in an incognito window) still shows elements that are supposed to be hidden: Although trying the old custom-sidebar DOES properly hide items on a per user basis ... I do no have them both installed at the same time though, I have been switching between them and restarting the server each install. Then using incognito windows or hard reloading the page to see changes. |
it should! at least it does for me you could try to see if the file is where its supposed to be (using file editor/browser), but if its not there, Im afraid I dont have any idea why. |
Ah!! ... you have nailed the problem. My users are not admins ... otherwise hiding the items would be pointless as they would be able to re-add them. So the old one works with the user not having to be admin but this v2 doesn't load correctly if the user is not an admin?? |
not sure thats the reason... Also dont think the file is actually missing, any more. i added some more logging, if you re-download the plugin you should see more stuff in that log object, all of it needs to be truthy, including these 2 elements: If you dont have them, take a screenshot of the Inspect/Elements, top of the page: hope we can figure it out, but now I have to go! |
I made my exceptions to hide some items for all users except myself. At first It was working properly, but after some time, I assume after latest update, this addon started to hide items from me as it does for all other users. Let's say my username is "not_user": ["john doe", "John Doe", "john"] Custom sidebar shows my My full sidebar-order.json (click to expand){
"order": [
{
"item": "lovelace"
},
{
"item": "map"
},
{
"item": "history",
"hide": true
},
{
"item": "alarmo"
},
{
"item": "a0d7b954_motioneye"
},
{
"item": "7ad98f9c_zigbee2mqtt"
},
{
"item": "a0d7b954_esphome"
},
{
"item": "a0d7b954_grafana",
"icon": "fapro:grafana"
},
{
"item": "a0d7b954_influxdb",
"icon": "fapro:influxdb"
},
{
"item": "a0d7b954_nodered",
"icon": "fapro:nodered"
},
{
"item": "a0d7b954_vscode"
},
{
"item": "shopping-list",
"hide": true
},
{
"item": "media-browser",
"hide": true
},
{
"item": "hacs",
"name": "HACS",
"icon": "fapro:hacs",
"bottom": true
},
{
"new_item": true,
"item": "Supervisor",
"href": "/hassio/dashboard",
"icon": "mdi:home-assistant",
"bottom": true
},
{
"item": "developer-tools",
"icon": "mdi:tools",
"bottom": true
},
{
"new_item": true,
"item": "Сервер",
"href": "/config/server_control",
"icon": "mdi:cog-refresh",
"bottom": true
},
{
"item": "config",
"bottom": true
}
],
"exceptions": [
{
"not_user": ["john doe", "John Doe", "john"],
"order": [
{
"item": "hacs",
"hide": true
},
{
"item": "Supervisor",
"hide": true
},
{
"item": "developer-tools",
"hide": true
},
{
"item": "Сервер",
"hide": true
},
{
"item": "config",
"hide": true
},
{
"item": "history",
"hide": true
},
{
"item": "alarmo",
"hide": true
},
{
"item": "a0d7b954_motioneye",
"hide": true
},
{
"item": "7ad98f9c_zigbee2mqtt",
"hide": true
},
{
"item": "a0d7b954_esphome",
"hide": true
},
{
"item": "a0d7b954_grafana",
"hide": true
},
{
"item": "a0d7b954_influxdb",
"hide": true
},
{
"item": "a0d7b954_nodered",
"hide": true
},
{
"item": "a0d7b954_vscode",
"hide": true
}
]
}
]
} If I can submit some other logs/configs to help mitigate the problem I will gladly do so, as this functionality is crucial for me, I can't believe it wasn't implemented in Home Assistant after so many years of requesting and implementing as addons. |
Hi, chiming in here, I am also seeing the same issue as reported. Comparing your console output to mine, the EDIT: Looks like this is why it breaks for non-admin users since they don't have the 'Configuration' menu: I removed the |
Fix for non-admin: galloween#4 (comment)
Adding user specific exceptions and having them hidden does not hide them for that user??
The text was updated successfully, but these errors were encountered: