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 e06cd1c commit d7fd231Copy full SHA for d7fd231
rust/signed_doc/src/validator/rules/signature_kid.rs
@@ -19,7 +19,7 @@ impl SignatureKidRule {
19
/// Generating `SignatureKidRule` from specs
20
pub(crate) fn new(spec: &Roles) -> anyhow::Result<Self> {
21
anyhow::ensure!(
22
- spec.user.is_empty() == !spec.admin.is_empty(),
+ spec.user.is_empty() != spec.admin.is_empty(),
23
"If 'admin' is not empty 'user' roles cannot been specified'.
24
And vice versa, if 'user' is not empty 'admin' roles cannot been specified'"
25
);
0 commit comments