add new fields
This commit is contained in:
parent
35904ff04f
commit
92af354a88
@ -175,6 +175,7 @@ instance YesodAuth App where
|
|||||||
, userName = Nothing
|
, userName = Nothing
|
||||||
, userIsAdmin = False
|
, userIsAdmin = False
|
||||||
, userLocalId = Nothing
|
, userLocalId = Nothing
|
||||||
|
, userIsAnonymous = Just False
|
||||||
}
|
}
|
||||||
|
|
||||||
-- You can add other plugins like BrowserID, email or OAuth here
|
-- You can add other plugins like BrowserID, email or OAuth here
|
||||||
|
@ -123,7 +123,8 @@ getSubmission repoId commit challengeId description chan = do
|
|||||||
submissionChallenge=challengeId,
|
submissionChallenge=challengeId,
|
||||||
submissionDescription=description,
|
submissionDescription=description,
|
||||||
submissionStamp=time,
|
submissionStamp=time,
|
||||||
submissionSubmitter=userId }
|
submissionSubmitter=userId,
|
||||||
|
submissionIsPublic=Just False }
|
||||||
|
|
||||||
getOuts :: Channel -> Key Submission -> Handler ([Out])
|
getOuts :: Channel -> Key Submission -> Handler ([Out])
|
||||||
getOuts chan submissionId = do
|
getOuts chan submissionId = do
|
||||||
|
@ -3,8 +3,9 @@ User
|
|||||||
password Text Maybe
|
password Text Maybe
|
||||||
UniqueUser ident
|
UniqueUser ident
|
||||||
name Text Maybe
|
name Text Maybe
|
||||||
isAdmin Bool default=True
|
isAdmin Bool default=False
|
||||||
localId Text Maybe
|
localId Text Maybe
|
||||||
|
isAnonymous Bool Maybe
|
||||||
deriving Typeable
|
deriving Typeable
|
||||||
PublicKey
|
PublicKey
|
||||||
user UserId
|
user UserId
|
||||||
@ -46,6 +47,7 @@ Submission
|
|||||||
description Text
|
description Text
|
||||||
stamp UTCTime default=now()
|
stamp UTCTime default=now()
|
||||||
submitter UserId
|
submitter UserId
|
||||||
|
isPublic Bool Maybe
|
||||||
UniqueSubmissionRepoCommitChallenge repo commit challenge
|
UniqueSubmissionRepoCommitChallenge repo commit challenge
|
||||||
Fork
|
Fork
|
||||||
source SubmissionId
|
source SubmissionId
|
||||||
|
Loading…
Reference in New Issue
Block a user