Add requires_zed_cla column to channels table
Don't allow granting guests write access in a call where the channel or one of its ancestors requires the zed CLA, until that guest has signed the Zed CLA. Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
parent
676d2cb24a
commit
25708088b7
14 changed files with 225 additions and 40 deletions
|
@ -23,13 +23,13 @@ async fn test_contributors(db: &Arc<Database>) {
|
|||
|
||||
assert_eq!(db.get_contributors().await.unwrap(), Vec::<String>::new());
|
||||
|
||||
db.add_contributor("user1", 1, None).await.unwrap();
|
||||
db.add_contributor("user1", Some(1), None).await.unwrap();
|
||||
assert_eq!(
|
||||
db.get_contributors().await.unwrap(),
|
||||
vec!["user1".to_string()]
|
||||
);
|
||||
|
||||
db.add_contributor("user2", 2, None).await.unwrap();
|
||||
db.add_contributor("user2", Some(2), None).await.unwrap();
|
||||
assert_eq!(
|
||||
db.get_contributors().await.unwrap(),
|
||||
vec!["user1".to_string(), "user2".to_string()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue