First pass of real access control

Co-Authored-By: Max<max@zed.dev>
This commit is contained in:
Conrad Irwin 2024-01-08 12:23:40 -07:00
parent 3541dd8a6d
commit a3bc48261e
4 changed files with 112 additions and 30 deletions

View file

@ -82,5 +82,13 @@ async fn test_channel_guests(
project_b.read_with(cx_b, |project, _| project.remote_id()),
Some(project_id),
);
assert!(project_b.read_with(cx_b, |project, _| project.is_read_only()))
assert!(project_b.read_with(cx_b, |project, _| project.is_read_only()));
assert!(project_b
.update(cx_b, |project, cx| {
let worktree_id = project.worktrees().next().unwrap().read(cx).id();
project.create_entry((worktree_id, "b.txt"), false, cx)
})
.await
.is_err())
}