Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/src/main/scala/wust/core/ApiImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ class ApiImpl(dsl: GuardDsl, db: Db, fileUploader: Option[S3FileUploader], email
// you automatically become a member of this node, then we get the graph and use normal access management.
//TODO: hacky and require all callers to assure that user exists in db if parentId is defined...
val requiredAction = page.parentId.fold(Future.successful(())) { parentId =>
db.node.addMemberIfCanAccessViaUrlAndNotMember(nodeId = parentId, userId = userId).map(_ => ())
// db.node.addMemberIfCanAccessViaUrlAndNotMember(nodeId = parentId, userId = userId).map(_ => ())
Future.successful(())
}

// TODO: also include the transitive parents of the page-parentId to be able no navigate upwards
Expand Down
Loading