mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
ws281x - Update logic to identify is user is admin (#1623)
This commit is contained in:
@@ -2069,7 +2069,7 @@ var updateOutputSelectList = function (ledType, discoveryInfo) {
|
||||
case "devRPiPWM":
|
||||
key = ledType;
|
||||
|
||||
if (discoveryInfo.devices.length == 0) {
|
||||
if (!discoveryInfo.isUserAdmin) {
|
||||
enumVals.push("NONE");
|
||||
enumTitleVals.push($.i18n('edt_dev_spec_devices_discovered_none'));
|
||||
$('#btn_submit_controller').prop('disabled', true);
|
||||
|
Reference in New Issue
Block a user