Commit d995075e authored by Samuel GAIST's avatar Samuel GAIST

[backend][helpers] If experiment has permission enable database sharing for block

parent b8acc32f
......@@ -403,6 +403,9 @@ def get_configuration_for_split(split):
# Retrieve the block configuration
configuration = simplejson.loads(str(split.job.block.command))
if split.job.block.experiment.author.has_perm("can_share_databases"):
configuration["share_databases"] = True
# (If necessary) Add the infos needed to access the database files
if settings.DATASETS_UID is not None:
configuration["datasets_uid"] = settings.DATASETS_UID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment