Skip to content

Commit

Permalink
feat: authorize admin roles
Browse files Browse the repository at this point in the history
  • Loading branch information
kentSarmiento committed Jan 13, 2024
1 parent 5a95da8 commit 90a3b8b
Show file tree
Hide file tree
Showing 11 changed files with 592 additions and 346 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion link-for-later/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Claims {
&self.sub
}

pub fn is_admin(&self) -> bool {
pub const fn is_admin(&self) -> bool {
self.admin
}
}
Expand Down
Loading

0 comments on commit 90a3b8b

Please sign in to comment.