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