chore(audit): audit assign submission to corrector
This commit is contained in:
parent
c313ba8097
commit
e2fb007551
@ -48,6 +48,10 @@ data Transaction
|
||||
, transactionUser :: UserId
|
||||
, transactionCourseApplication :: CourseApplicationId
|
||||
}
|
||||
| TransactionSubmissionCorrectorUpdated
|
||||
{ transactionSubmission :: SubmissionId
|
||||
, transactionMbUser :: Maybe UserId
|
||||
}
|
||||
deriving (Eq, Ord, Read, Show, Generic, Typeable)
|
||||
|
||||
deriveJSON defaultOptions
|
||||
|
||||
@ -622,6 +622,7 @@ postSubAssignR tid ssh csh shn cID = do
|
||||
, SubmissionRatingAssigned =. (now <$ mbUserId)
|
||||
]
|
||||
addMessageI Success MsgCorrectorUpdated
|
||||
audit $ TransactionSubmissionCorrectorUpdated sId mbUserId
|
||||
redirect actionUrl
|
||||
let corrForm = wrapForm' BtnSave corrForm' def
|
||||
{ formAction = Just $ SomeRoute actionUrl
|
||||
|
||||
Loading…
Reference in New Issue
Block a user