42 removed (but current state is dangerous: works only for admins
This commit is contained in:
parent
68cc79e5f3
commit
89d21580aa
@ -893,8 +893,7 @@ postCUserR tid ssh csh uCId = do
|
|||||||
mRegAt <- traverse (formatTime SelFormatDateTime) $ courseParticipantRegistration <$> registration
|
mRegAt <- traverse (formatTime SelFormatDateTime) $ courseParticipantRegistration <$> registration
|
||||||
((registerRes,registerView), registerEnctype) <- runFormPost $ registerForm (Just uid) registration Nothing Nothing -- Lecturers are never asked their own register secret
|
((registerRes,registerView), registerEnctype) <- runFormPost $ registerForm (Just uid) registration Nothing Nothing -- Lecturers are never asked their own register secret
|
||||||
formResult registerRes $ \(mbSfId, _secretCorrect) -> if -- lecturers need no secret verification
|
formResult registerRes $ \(mbSfId, _secretCorrect) -> if -- lecturers need no secret verification
|
||||||
-- | isRegistered -> do
|
| isJust registration -> do
|
||||||
| 1 + 2 < 42 -> do
|
|
||||||
runDB $ deleteBy $ UniqueParticipant uid cid
|
runDB $ deleteBy $ UniqueParticipant uid cid
|
||||||
addMessageI Info MsgCourseDeregisterOk
|
addMessageI Info MsgCourseDeregisterOk
|
||||||
| otherwise -> do
|
| otherwise -> do
|
||||||
|
|||||||
Reference in New Issue
Block a user