mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Hide entity config option for user group (#2941)
This commit is contained in:
parent
7aa296e774
commit
68909c80ff
@ -176,6 +176,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.hass.user.is_admin) {
|
||||||
try {
|
try {
|
||||||
const info = await this.hass.callWS({
|
const info = await this.hass.callWS({
|
||||||
type: "config/entity_registry/get",
|
type: "config/entity_registry/get",
|
||||||
@ -186,6 +187,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
|
|||||||
this._registryInfo = null;
|
this._registryInfo = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_dialogOpenChanged(newVal) {
|
_dialogOpenChanged(newVal) {
|
||||||
if (!newVal && this.stateObj) {
|
if (!newVal && this.stateObj) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user