Commit 0a5dc16e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[DEBUG]

parent 5e3237d9
...@@ -72,7 +72,7 @@ api userInviting nId (ShareTeamParams user') = do ...@@ -72,7 +72,7 @@ api userInviting nId (ShareTeamParams user') = do
username' <- getUsername userInviting username' <- getUsername userInviting
_ <- case List.elem username' arbitraryUsername of _ <- case List.elem username' arbitraryUsername of
True -> do True -> do
printDebug "[G.A.N.Share.api]" ("demo users are not allowed to invite" :: Text) printDebug "[G.A.N.Share.api]" ("Demo users are not allowed to invite" :: Text)
pure () pure ()
False -> do False -> do
-- TODO better analysis of the composition of what is shared -- TODO better analysis of the composition of what is shared
......
...@@ -58,10 +58,11 @@ newUser' address u = newUsers' address [u] ...@@ -58,10 +58,11 @@ newUser' address u = newUsers' address [u]
newUsers' :: HasNodeError err newUsers' :: HasNodeError err
=> ServerAdress -> [NewUser GargPassword] -> Cmd err Int64 => ServerAdress -> [NewUser GargPassword] -> Cmd err Int64
newUsers' address us = do newUsers' address us = do
us' <- liftBase $ mapM toUserHash us us' <- liftBase $ mapM toUserHash us
r <- insertUsers $ map toUserWrite us' r <- insertUsers $ map toUserWrite us'
_ <- mapM getOrMkRoot $ map (\u -> UserName (_nu_username u)) us _ <- mapM getOrMkRoot $ map (\u -> UserName (_nu_username u)) us
_ <- liftBase $ mapM (\u -> mail address (Invitation u)) us _ <- liftBase $ mapM (\u -> mail address (Invitation u)) us
printDebug "newUsers'" us
pure r pure r
------------------------------------------------------------------------ ------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment