|
|
@@ -308,8 +308,8 @@ STORED AS TEXTFILE %s""" % (self.properties.get('send_result_path'), '\n\n\n'.jo
|
|
|
create_directories(self.fs)
|
|
|
|
|
|
# Check if job owner owns the deployment directory.
|
|
|
- has_deployment_dir_access = True
|
|
|
- if self.job.deployment_dir:
|
|
|
+ has_deployment_dir_access = False
|
|
|
+ if self.job.deployment_dir and self.fs.exists(self.job.deployment_dir):
|
|
|
statbuf = self.fs.stats(self.job.deployment_dir)
|
|
|
has_deployment_dir_access = statbuf and (statbuf.user == self.job.user.username)
|
|
|
|