mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Only allow admin to edit UI config (#3674)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3084
This commit is contained in:
parent
a29d598027
commit
9eae637814
@ -186,6 +186,8 @@ class HUIRoot extends LitElement {
|
||||
</paper-item>
|
||||
`
|
||||
: ""}
|
||||
${this.hass!.user!.is_admin
|
||||
? html`
|
||||
<paper-item
|
||||
aria-label=${this.hass!.localize(
|
||||
"ui.panel.lovelace.menu.configure_ui"
|
||||
@ -196,6 +198,8 @@ class HUIRoot extends LitElement {
|
||||
"ui.panel.lovelace.menu.configure_ui"
|
||||
)}
|
||||
</paper-item>
|
||||
`
|
||||
: ""}
|
||||
<paper-item
|
||||
aria-label=${this.hass!.localize(
|
||||
"ui.panel.lovelace.menu.help"
|
||||
|
Loading…
x
Reference in New Issue
Block a user