diff --git a/src/Foundation.hs b/src/Foundation.hs index d070194a2..ecc31caf4 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -267,6 +267,7 @@ isAuthenticated = do Nothing -> Unauthorized "You must login to access this page" Just _ -> Authorized + instance YesodAuthPersist UniWorX -- This instance is required to use forms. You can modify renderMessage to diff --git a/src/Handler/Term.hs b/src/Handler/Term.hs index 7110537ec..6a90a527e 100644 --- a/src/Handler/Term.hs +++ b/src/Handler/Term.hs @@ -22,6 +22,7 @@ getShowTermsR = do setTitle "Freigeschaltete Semester" -- TODO: provide common utility function for formatting Times -- TODO: turn into proper table + -- TODO Edit-Links only $if isAdmin, otherwise breadcrumb navigation [whamlet|