Don't hide CorrectionR-PageAction

Fixes #128
This commit is contained in:
Gregor Kleen 2018-07-22 17:28:53 +02:00
parent b80f9e79e4
commit e0c8e6edf0

View File

@ -872,12 +872,7 @@ pageActions (CSubmissionR tid csh shn cid SubShowR) =
{ menuItemLabel = "Korrektur" { menuItemLabel = "Korrektur"
, menuItemIcon = Nothing , menuItemIcon = Nothing
, menuItemRoute = CSubmissionR tid csh shn cid CorrectionR , menuItemRoute = CSubmissionR tid csh shn cid CorrectionR
, menuItemAccessCallback' = do , menuItemAccessCallback' = return True
smid <- decrypt cid
sm <- runDB $ get smid
case sm of
(Just (Submission { submissionRatingTime=Just _})) -> return True
_ -> return False
} }
] ]
pageActions (CSheetR tid csh shn SCorrR) = pageActions (CSheetR tid csh shn SCorrR) =