Commit ca96c57c authored by Alexandre Delanoë's avatar Alexandre Delanoë

[INIT] add main folders.

parent f432d12c
......@@ -672,7 +672,16 @@ mkNodeWithParent _ _ _ _ = nodeError NotImplYet
mkRoot :: HasNodeError err => Username -> UserId -> Cmd err [RootId]
mkRoot uname uId = case uId > 0 of
False -> nodeError NegativeId
True -> mkNodeWithParent NodeUser Nothing uId uname
True -> do
rs <- mkNodeWithParent NodeUser Nothing uId uname
_ <- case rs of
[r] -> do
_ <- mkNodeWithParent NodeFolderPrivate (Just r) uId uname
_ <- mkNodeWithParent NodeFolderShared (Just r) uId uname
_ <- mkNodeWithParent NodeFolderPublic (Just r) uId uname
pure rs
_ -> pure rs
pure rs
-- |
-- CorpusDocument is a corpus made from a set of documents
......
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