function showEditDialog(node, defaultTab) {
if (buildingEditDialog) { return }
if (editStack.includes(node)) { return }
buildingEditDialog = true;
if (node.z && RED.workspaces.isLocked(node.z)) { return }
If I attempt to open an edit dialog on a workspace that is locked, then the buildingEditDialog flag is set to true and when I then attempt to open another dialog, the flag prevents the dialog from being opened.
Just followed up and tried this out. Turns out that the showEditDialog function isn't called if a node is defined within a workspace that is locked. So the showEditDialog isn't called and the buildingEditDialog flag isn't set.
Something else is preventing the function from being called if a workspace is locked - what is blocking that call, I don't know.
So this is a non-issue, please move on, nothing to see here.
EDIT: here the tab editor edit is prevented and here the node edit call is prevented if the workspace is locked.