fix: fix build
This commit is contained in:
parent
6d52ed5c4c
commit
1a66716e8a
@ -21,8 +21,10 @@ postCAEditR tid ssh csh cID = do
|
|||||||
return (mAlloc, course, app, appUser)
|
return (mAlloc, course, app, appUser)
|
||||||
|
|
||||||
isAdmin <- case mAlloc of
|
isAdmin <- case mAlloc of
|
||||||
Just alloc -> hasWriteAccessTo $ SchoolR (alloc ^. _entityVal . _allocationSchool) SchoolEditR
|
Just (Entity _ Allocation{..})
|
||||||
Nothing -> hasWriteAccessTo $ SchoolR (course ^. _entityVal . _courseSchool ) SchoolEditR
|
-> hasWriteAccessTo $ SchoolR allocationSchool SchoolEditR
|
||||||
|
Nothing
|
||||||
|
-> hasWriteAccessTo $ SchoolR courseSchool SchoolEditR
|
||||||
afmLecturer <- hasWriteAccessTo $ CourseR courseTerm courseSchool courseShorthand CEditR
|
afmLecturer <- hasWriteAccessTo $ CourseR courseTerm courseSchool courseShorthand CEditR
|
||||||
afmApplicantEdit <- hasWriteAccessTo $ CApplicationR tid ssh csh cID CAEditR -- TODO: Wrong.
|
afmApplicantEdit <- hasWriteAccessTo $ CApplicationR tid ssh csh cID CAEditR -- TODO: Wrong.
|
||||||
courseCID <- encrypt cid :: Handler CryptoUUIDCourse
|
courseCID <- encrypt cid :: Handler CryptoUUIDCourse
|
||||||
|
|||||||
Reference in New Issue
Block a user