We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab8709 commit e0c9552Copy full SHA for e0c9552
rust/signed_doc/src/validator/rules/ownership/mod.rs
@@ -153,8 +153,10 @@ impl DocumentOwnershipRule {
153
154
let doc_authors = doc.authors().into_iter().collect::<HashSet<_>>();
155
156
- // all elements of the `doc_authors` should be intersecting with the `allowed_authors`
157
- let is_valid = allowed_authors.intersection(&doc_authors).count() == doc_authors.len();
+ // all elements of the `doc_authors` should be intersecting with the `allowed_authors` OR
+ // `allowed_authors` must be empty
158
+ let is_valid = allowed_authors.is_empty()
159
+ || allowed_authors.intersection(&doc_authors).count() == doc_authors.len();
160
161
if !is_valid {
162
doc.report().functional_validation(
0 commit comments