@astrale-os/kernel-dsl 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,7 @@ function validateClassPolicyUses(context, typing, operation) {
|
|
|
28
28
|
continue;
|
|
29
29
|
const pointer = `/classes/${escapePointer(name)}/policies/${operation}`;
|
|
30
30
|
if (isClassRuleChecks(ref)) {
|
|
31
|
-
// A rule
|
|
31
|
+
// A rule decides the caller the way a named Policy does, so, as a Policy connects its
|
|
32
32
|
// subject, each way the rule holds must pass through a check of the caller.
|
|
33
33
|
if (!checksNameTheCaller(ref)) {
|
|
34
34
|
context.add('PL_CONNECTIVITY', pointer, `Every branch of the ${operation} rule of Node Class ${name} must check a Policy: sameNode alone names no caller.`);
|