Skip to content
Snippets Groups Projects
Commit 4afd4349 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

WS-121 Recursively opened permissions within the users' delivery directories

parent 68a0e6a1
No related branches found
No related tags found
1 merge request!1222WS-121 Recursively opened permissions within the users' delivery directories
Pipeline #8296 passed
Pipeline: workspaces

#8297

    ......@@ -47,7 +47,10 @@ class SharedWebDestination(DestinationDecorator):
    super().__init__(LocalDestination(context, self.destination_dir))
    # Open permissions on the username dir for the group so both vlapipe and almapipe can make delivery dirs
    (pathlib.Path(capo.downloadDirectory) / username).chmod(0o2770)
    user_path = pathlib.Path(capo.downloadDirectory) / username
    user_path.chmod(0o2775)
    for p in user_path.rglob("*"):
    p.chmod(0o2775)
    # generate the download URL for later usage
    self.download_url = f"{capo.downloadUrl}/{username}{'/'+ prefix if prefix else ''}/{context.token()}"
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment