Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Sarah Vaupel 2020-08-10 11:40:03 +02:00
parent e4f9f393eb
commit d20ad6c5db

View File

@ -268,7 +268,7 @@ postCRegisterR tid ssh csh = do
muid <- maybeAuthId
ata <- getSessionActiveAuthTags
now <- liftIO getCurrentTime
courseVisible <- runDB $ E.selectExists . E.from $ \c -> E.where_ $ -- TODO meh...
courseVisible <- runDB . E.selectExists . E.from $ \c -> E.where_ $
c E.^. CourseId E.==. E.val cid
E.&&. mayViewCourse muid ata now c Nothing
redirect $ bool NewsR (CourseR tid ssh csh CShowR) courseVisible