Skip to content

Commit

Permalink
Allow submitted assignments to be edited by Admins - make status writ…
Browse files Browse the repository at this point in the history
…able.
  • Loading branch information
davidorme committed Sep 9, 2021
1 parent 9175579 commit 59290cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/marking_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ def edit_assignment():
"""Edit assignment details
This controller allows an administrator to edit the details of
an assignment - the marker/role/etc.
an assignment - the marker/role/etc. The contents of
db.assignments.assignment_data should be edited via view_assignment.
"""
db.assignments.assignment_data.readable = False
Expand Down Expand Up @@ -516,6 +517,8 @@ def edit_assignment():
# else:
# readonly = False

# Allow admins to change the status
db.assignments.status.writable = True
readonly = False

form = SQLFORM(db.assignments,
Expand Down

0 comments on commit 59290cb

Please sign in to comment.