Merge pull request #5336 from node-red/fix-lock-icon

Fix lock icon for read-only user
pull/5337/head
Nick O'Leary 2025-10-29 15:38:30 +00:00 committed by GitHub
commit 7a543aff36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ RED.deploy = (function() {
}
function updateLockedState() {
if (RED.settings.user?.permissions === 'read') {
if (!RED.user.hasPermission('flows.write')) {
$(".red-ui-deploy-button-group").addClass("readOnly");
$("#red-ui-header-button-deploy").addClass("disabled");
} else {