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