Skip to content

Commit

Permalink
Schema transformation: use msi wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Oct 11, 2023
1 parent cc61a67 commit 80f4a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80f4a06

Please sign in to comment.