12 lines
703 B
Diff
12 lines
703 B
Diff
--- packages/business/src/instance-settings.mjs
|
|
+++ packages/business/src/instance-settings.mjs
|
|
@@ -256,7 +256,7 @@
|
|
creativeHumanOnly(old, actor, instance, args.definition);
|
|
const before = loadRole(rolesDir, entry.definition);
|
|
// mos-1585: a declaration alone is no binding (the chief without a library holds none).
|
|
- const holdsCredentials = Object.keys(entry.credentials ?? {}).length > 0;
|
|
+ const holdsCredentials = before.credentials.length > 0;
|
|
const creative = holdsCredentials && creativeDefinition(before);
|
|
const after = definitionFor(rolesDir, args.definition, { credentials: creative });
|
|
if (holdsCredentials && !creative) {
|