12 lines
756 B
Diff
12 lines
756 B
Diff
--- packages/business/src/role.mjs
|
|
+++ packages/business/src/role.mjs
|
|
@@ -165,7 +165,7 @@
|
|
function checkCreative(role) {
|
|
const wider = role.tools.filter((tool) => !CREATIVE_TOOLS.includes(tool));
|
|
if (wider.length > 0) refuse(`creative role ${role.name} may not name tools ${wider.join(", ")} (allowed: ${CREATIVE_TOOLS.join(", ")})`);
|
|
- if (role.authority.crossRole.length > 0 || role.authority.withinRole.some((a) => !CREATIVE_ACTIONS.includes(a))) {
|
|
+ if (role.authority.withinRole.some((a) => !CREATIVE_ACTIONS.includes(a))) {
|
|
refuse(`creative role ${role.name} may hold only withinRole ${CREATIVE_ACTIONS.join(" and ")}`);
|
|
}
|
|
const services = role.credentials.map((c) => c.service).filter((service) => service !== CREATIVE_SERVICE);
|