Commit 81cc330d authored by dennisjl's avatar dennisjl
Browse files

removed unsed variable in

parent 6fb4aae9
Pipeline #79917 passed with stage
in 1 minute and 17 seconds
......@@ -139,7 +139,6 @@ def upload_file_to_task(request, project_id, task_id):
task_file.task = task
existing_file = task.files.filter(file=directory_path(task_file, task_file.file.file)).first()
access = user_permissions['modify'] or user_permissions['owner']
access_to_file = False # Initialize access_to_file to false
for team in request.user.profile.teams.all():
file_modify_access = TaskFileTeam.objects.filter(team=team, file=existing_file, modify=True).exists()
Supports Markdown
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