Fix broken template & cleanup routes
This commit is contained in:
parent
0da0c46b2e
commit
e3fc2ee5a8
@ -72,8 +72,8 @@ CorrectionsTitle: Zugewiesene Korrekturen
|
|||||||
CourseCorrectionsTitle: Korrekturen für diesen Kurs
|
CourseCorrectionsTitle: Korrekturen für diesen Kurs
|
||||||
|
|
||||||
Unauthorized: Sie haben hierfür keine explizite Berechtigung.
|
Unauthorized: Sie haben hierfür keine explizite Berechtigung.
|
||||||
UnauthorizedAnd l@Text r@Text: #{l} UND #{r}
|
UnauthorizedAnd l@Text r@Text: (#{l} UND #{r})
|
||||||
UnauthorizedOr l@Text r@Text: #{l} ODER #{r}
|
UnauthorizedOr l@Text r@Text: (#{l} ODER #{r})
|
||||||
UnauthorizedSchoolAdmin: Sie sind nicht als Administrator für dieses Institut eingetragen.
|
UnauthorizedSchoolAdmin: Sie sind nicht als Administrator für dieses Institut eingetragen.
|
||||||
UnauthorizedSchoolLecturer: Sie sind nicht als Veranstalter für dieses Institut eingetragen.
|
UnauthorizedSchoolLecturer: Sie sind nicht als Veranstalter für dieses Institut eingetragen.
|
||||||
UnauthorizedLecturer: Sie sind nicht als Veranstalter für diese Veranstaltung eingetragen.
|
UnauthorizedLecturer: Sie sind nicht als Veranstalter für diese Veranstaltung eingetragen.
|
||||||
|
|||||||
4
routes
4
routes
@ -48,14 +48,14 @@
|
|||||||
/course/ CourseListR GET !free
|
/course/ CourseListR GET !free
|
||||||
!/course/new CourseNewR GET POST !lecturer
|
!/course/new CourseNewR GET POST !lecturer
|
||||||
/course/#TermId/#Text CourseR !lecturer:
|
/course/#TermId/#Text CourseR !lecturer:
|
||||||
/show CShowR GET !free
|
/ CShowR GET !free
|
||||||
/register CRegisterR POST !time
|
/register CRegisterR POST !time
|
||||||
/edit CEditR GET POST
|
/edit CEditR GET POST
|
||||||
/subs CourseCorrectionsR GET POST
|
/subs CourseCorrectionsR GET POST
|
||||||
/ex SheetListR GET !registered !materials
|
/ex SheetListR GET !registered !materials
|
||||||
!/ex/new SheetNewR GET POST
|
!/ex/new SheetNewR GET POST
|
||||||
/ex/#Text SheetR:
|
/ex/#Text SheetR:
|
||||||
/show SShowR GET !timeANDregistered !timeANDmaterials !corrector
|
/ SShowR GET !timeANDregistered !timeANDmaterials !corrector
|
||||||
/edit SEditR GET POST
|
/edit SEditR GET POST
|
||||||
/delete SDelR GET POST
|
/delete SDelR GET POST
|
||||||
/subs SSubsR GET POST
|
/subs SSubsR GET POST
|
||||||
|
|||||||
@ -348,7 +348,6 @@ knownTags = Map.fromList -- should not throw exceptions, i.e. no getBy404 or req
|
|||||||
authId <- maybeExceptT AuthenticationRequired $ lift maybeAuthId
|
authId <- maybeExceptT AuthenticationRequired $ lift maybeAuthId
|
||||||
void . maybeMExceptT (unauthorizedI MsgUnauthorizedSubmissionOwner) . getBy $ UniqueSubmissionUser authId sid
|
void . maybeMExceptT (unauthorizedI MsgUnauthorizedSubmissionOwner) . getBy $ UniqueSubmissionUser authId sid
|
||||||
return Authorized
|
return Authorized
|
||||||
CSheetR _ _ _ SubmissionNewR -> unauthorizedI MsgUnauthorizedSubmissionOwner
|
|
||||||
r -> do
|
r -> do
|
||||||
$logErrorS "AccessControl" $ "'!owner' used on route that doesn't support it: " <> tshow r
|
$logErrorS "AccessControl" $ "'!owner' used on route that doesn't support it: " <> tshow r
|
||||||
unauthorizedI MsgUnauthorized
|
unauthorizedI MsgUnauthorized
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
<tr .table__row>
|
<tr .table__row>
|
||||||
<th .table__th> _{MsgAchievedPassPoints}
|
<th .table__th> _{MsgAchievedPassPoints}
|
||||||
<td .table__td> _{MsgPassAchievedOf points passingPoints maxPoints}
|
<td .table__td> _{MsgPassAchievedOf points passingPoints maxPoints}
|
||||||
|
$of NotGraded
|
||||||
$maybe comment <- ratingComment
|
$maybe comment <- ratingComment
|
||||||
<tr .table__row>
|
<tr .table__row>
|
||||||
<th .table__th> _{MsgRatingComment}
|
<th .table__th> _{MsgRatingComment}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
$maybe cID <- mCID
|
$maybe cID <- mcid
|
||||||
<section style="padding-bottom:1em; margin-bottom:1em; border-bottom:1px solid black;">
|
<section style="padding-bottom:1em; margin-bottom:1em; border-bottom:1px solid black;">
|
||||||
<h2>
|
<h2>
|
||||||
<a href=@{CSubmissionR tid csh shn cID SubArchiveR}>Archiv
|
<a href=@{CSubmissionR tid csh shn cID SubArchiveR}>Archiv
|
||||||
|
|||||||
Reference in New Issue
Block a user