Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
e4f9f393eb
commit
d20ad6c5db
@ -268,7 +268,7 @@ postCRegisterR tid ssh csh = do
|
|||||||
muid <- maybeAuthId
|
muid <- maybeAuthId
|
||||||
ata <- getSessionActiveAuthTags
|
ata <- getSessionActiveAuthTags
|
||||||
now <- liftIO getCurrentTime
|
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
|
c E.^. CourseId E.==. E.val cid
|
||||||
E.&&. mayViewCourse muid ata now c Nothing
|
E.&&. mayViewCourse muid ata now c Nothing
|
||||||
redirect $ bool NewsR (CourseR tid ssh csh CShowR) courseVisible
|
redirect $ bool NewsR (CourseR tid ssh csh CShowR) courseVisible
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user