Unverified Commit 678a5fe2 authored by Johannes Tomren Røsvik's avatar Johannes Tomren Røsvik
Browse files

Function names should comply with a naming convention

parent 72bb1486
Pipeline #79921 passed with stage
in 1 minute and 6 seconds
......@@ -122,7 +122,7 @@ def project_view(request, project_id):
})
def isProjectOwner(user, project):
def is_project_owner(user, project):
return user == project.user.user
......@@ -133,7 +133,7 @@ def upload_file_to_task(request, project_id, task_id):
user_permissions = get_user_task_permissions(request.user, task)
accepted_task_offer = task.accepted_task_offer()
if user_permissions['modify'] or user_permissions['write'] or user_permissions['upload'] or isProjectOwner(request.user, project):
if user_permissions['modify'] or user_permissions['write'] or user_permissions['upload'] or is_project_owner(request.user, project):
if request.method == 'POST':
task_file_form = TaskFileForm(request.POST, request.FILES)
if task_file_form.is_valid():
......
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