From 80f4a06f58995577d4f3951f1899a97c00b5f3ff Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Wed, 11 Oct 2023 16:17:58 +0200 Subject: [PATCH] Schema transformation: use msi wrappers --- schema_transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema_transformation.py b/schema_transformation.py index 5b9e5d763..d63ebc675 100644 --- a/schema_transformation.py +++ b/schema_transformation.py @@ -137,13 +137,13 @@ def copy_acls_from_parent(ctx, path, recursive_flag): if access_name == "own": log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">") - ctx.msiSetACL(recursive_flag, "own", user_name, path) + msi.set_acl(ctx, recursive_flag, "own", user_name, path) elif access_name == "read object": log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">") - ctx.msiSetACL(recursive_flag, "read", user_name, path) + msi.set_acl(ctx, recursive_flag, "read", user_name, path) elif access_name == "modify object": log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">") - ctx.msiSetACL(recursive_flag, "write", user_name, path) + msi.set_acl(ctx, recursive_flag, "write", user_name, path) # TODO: @rule.make