Skip to content

Commit 708486d

Browse files
committed
fix typos
1 parent 9aeac35 commit 708486d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ half signs new tokens, and the public half is shared with your node so it can
280280
verify them.
281281

282282
```sh
283-
# install the biscuit CLI (or download a prebuilt binary from the Biscuit releases page
283+
# install the biscuit CLI (or download a prebuilt binary from the Biscuit releases page)
284284
cargo install biscuit-cli
285285

286286
# generate a root keypair (prints both keys)

src/auth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub(crate) async fn conditional_auth_middleware(
122122

123123
let op = request.uri().path().to_string();
124124

125-
if is_ready_only_role(&token) {
125+
if is_read_only_role(&token) {
126126
if is_operation_readonly(&op) {
127127
return Ok(next.run(request).await);
128128
} else {
@@ -149,7 +149,7 @@ fn is_custom_role(token: &Biscuit) -> bool {
149149
is_role(token, "custom")
150150
}
151151

152-
fn is_ready_only_role(token: &Biscuit) -> bool {
152+
fn is_read_only_role(token: &Biscuit) -> bool {
153153
is_role(token, "read-only")
154154
}
155155

0 commit comments

Comments
 (0)