First pass of real access control
Co-Authored-By: Max<max@zed.dev>
This commit is contained in:
parent
3541dd8a6d
commit
a3bc48261e
4 changed files with 112 additions and 30 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue