Skip to content

Commit

Permalink
[frontend/tasks] fix call for task_user_can_submit
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygego committed Feb 9, 2023
1 parent 8e05424 commit a0dfe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/frontend/pages/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def POST(self, courseid, taskid, isLTI):
userinput = flask.request.form
if "@action" in userinput and userinput["@action"] == "submit":
# Verify rights
if not self.user_manager.task_can_user_submit(task, username, isLTI):
if not self.user_manager.task_can_user_submit(task, username, lti=isLTI):
return json.dumps({"status": "error", "title": _("Error"), "text": _("You are not allowed to submit for this task.")})

# Retrieve input random and check still valid
Expand Down

0 comments on commit a0dfe26

Please sign in to comment.