Remove cba on non-owned pads

This commit is contained in:
yflory 2020-04-22 10:44:16 +02:00
parent e5f1fa7ef0
commit cf8841cdfa

View File

@ -452,6 +452,7 @@ define([
markers.ready();
common.getPadMetadata(null, function (md) {
if (md && md.error) { return; }
if (!Array.isArray(md.owners)) { return void markers.setState(false); }
if (!common.isOwned(md.owners)) { return; }
// We're the owner: add the button and enable the colors if needed
mkColorByAuthor(framework, markers);