Bugfix access rights current & lastinactive
This commit is contained in:
parent
02a0dc1435
commit
0c9f9aa419
4
routes
4
routes
@ -73,8 +73,8 @@
|
||||
/subs CCorrectionsR GET POST
|
||||
/ex SheetListR GET !registered !materials !corrector
|
||||
!/ex/new SheetNewR GET POST
|
||||
!/ex/current SheetCurrentR GET !free -- just a redirect
|
||||
!/ex/lastinactive SheetOldUnassigned GET !free -- just a redirect
|
||||
!/ex/current SheetCurrentR GET !registered !materials !corrector
|
||||
!/ex/unassigned SheetOldUnassigned GET
|
||||
/ex/#SheetName SheetR:
|
||||
/show SShowR GET !timeANDregistered !timeANDmaterials !corrector
|
||||
/edit SEditR GET POST
|
||||
|
||||
@ -1298,7 +1298,6 @@ pageActions (CourseR tid ssh csh SheetListR) =
|
||||
, menuItemRoute = SomeRoute $ CourseR tid ssh csh SheetOldUnassigned
|
||||
, menuItemModal = False
|
||||
, menuItemAccessCallback' = runDB . maybeT (return False) $ do
|
||||
guardM $ (== Authorized) <$> evalAccessCorrector tid ssh csh
|
||||
void . MaybeT $ sheetOldUnassigned tid ssh csh
|
||||
return True
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user