feat(course admin): done
This commit is contained in:
parent
3c0a41f5a1
commit
15689c597e
@ -278,3 +278,4 @@ LecturerInvitationAccepted lType@Text csh@CourseShorthand: Sie wurden als #{lTyp
|
|||||||
CourseExamRegistrationTime: Angemeldet seit
|
CourseExamRegistrationTime: Angemeldet seit
|
||||||
CourseParticipantStateIsActiveFilter: Ansicht
|
CourseParticipantStateIsActiveFilter: Ansicht
|
||||||
CourseApply: Zum Kurs bewerben
|
CourseApply: Zum Kurs bewerben
|
||||||
|
CourseAdministrator: Administrator:in
|
||||||
@ -277,3 +277,4 @@ LecturerInvitationAccepted lType csh: You were registered as #{lType} for #{csh}
|
|||||||
CourseExamRegistrationTime: Registered since
|
CourseExamRegistrationTime: Registered since
|
||||||
CourseParticipantStateIsActiveFilter: View
|
CourseParticipantStateIsActiveFilter: View
|
||||||
CourseApply: Apply for course
|
CourseApply: Apply for course
|
||||||
|
CourseAdministrator: Administrator
|
||||||
@ -710,3 +710,4 @@ addPWEntry User{ userAuthentication = _, ..} (Text.encodeUtf8 -> pw) = db' $ do
|
|||||||
PWHashConf{..} <- getsYesod $ view _appAuthPWHash
|
PWHashConf{..} <- getsYesod $ view _appAuthPWHash
|
||||||
(AuthPWHash . Text.decodeUtf8 -> userAuthentication) <- liftIO $ makePasswordWith pwHashAlgorithm pw pwHashStrength
|
(AuthPWHash . Text.decodeUtf8 -> userAuthentication) <- liftIO $ makePasswordWith pwHashAlgorithm pw pwHashStrength
|
||||||
void $ insert User{..}
|
void $ insert User{..}
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import Model.Types.TH.PathPiece
|
|||||||
import Utils.Lens.TH
|
import Utils.Lens.TH
|
||||||
|
|
||||||
|
|
||||||
data LecturerType = CourseLecturer | CourseAssistant
|
data LecturerType = CourseLecturer | CourseAssistant | CourseAdministrator
|
||||||
deriving (Eq, Ord, Read, Show, Enum, Bounded, Generic, Typeable)
|
deriving (Eq, Ord, Read, Show, Enum, Bounded, Generic, Typeable)
|
||||||
deriving (Universe, Finite, NFData)
|
deriving (Universe, Finite, NFData)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user