Bläddra i källkod

Can not see or modify files if the task is open and the user is not the owner

https
jakobsn 6 år sedan
förälder
incheckning
367dfe5105
1 ändrade filer med 13 tillägg och 10 borttagningar
  1. +13
    -10
      src/app/templates/project.html

+ 13
- 10
src/app/templates/project.html Visa fil

@@ -21,16 +21,19 @@ $def with (nav, project, tasks)
<ul>
$for task in tasks:
<li id="$task[0]">$task
<br>
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
<br>
$if project[5] == "in progress":
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
</li>
</ul>



Laddar…
Avbryt
Spara