ws281x - Update logic to identify is user is admin (#1623)

This commit is contained in:
LordGrey
2023-08-03 22:40:25 +02:00
committed by GitHub
parent c0dc08b0c0
commit d1879c2e39
2 changed files with 5 additions and 7 deletions

View File

@@ -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);