diff --git a/entity/PermissionDetail_entity/entityfields/permissionactions/onValidation.js b/entity/PermissionDetail_entity/entityfields/permissionactions/onValidation.js index 33249a800bf8bf728e671a4692e23b2772083c1f..bdde9a22de1a2c1d98d520fef40b44786caf42f7 100644 --- a/entity/PermissionDetail_entity/entityfields/permissionactions/onValidation.js +++ b/entity/PermissionDetail_entity/entityfields/permissionactions/onValidation.js @@ -32,7 +32,10 @@ for each (let row in insertedRows) { } } -if (deletedRows.length == actionsAsStringArray.length && changedRows.length == 0 && insertedRows.length == 0) { +if ( + (deletedRows.length == actionsAsStringArray.length && changedRows.length == 0 && insertedRows.length == 0) + || (deletedRows.length == 0 && changedRows.length == 0 && insertedRows.length == 0) +) { result.string(translate.text("Permissions without actions are invalid!")); } diff --git a/entity/PermissionDetail_entity/recordcontainers/jdito/onInsert.js b/entity/PermissionDetail_entity/recordcontainers/jdito/onInsert.js index 0a6bc9e065076c1f6f04508a7a9dfc2b499c8828..7c56b116720e4685a778c628710a51e04516e63e 100644 --- a/entity/PermissionDetail_entity/recordcontainers/jdito/onInsert.js +++ b/entity/PermissionDetail_entity/recordcontainers/jdito/onInsert.js @@ -1,4 +1,3 @@ -import("system.logging"); import("Sql_lib"); import("Permission_lib"); import("system.neon");