From 7794fa0a34ee24881a6e8c32741c1a9453beeaf4 Mon Sep 17 00:00:00 2001 From: Calvin Prewitt Date: Tue, 27 Feb 2024 14:03:02 -0500 Subject: [PATCH] added `key_permissions` method to package LogState (#251) Added method to determine what permissions a given `KeyID` has for a package. --- crates/client/src/lib.rs | 2 +- crates/protocol/src/package/state.rs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/client/src/lib.rs b/crates/client/src/lib.rs index 46930a4d..0c30be14 100644 --- a/crates/client/src/lib.rs +++ b/crates/client/src/lib.rs @@ -146,7 +146,7 @@ impl Client Option<&IndexSet> { + self.permissions.get(key_id) + } + fn initialized(&self) -> bool { // The package log is initialized if the hash algorithm is set self.algorithm.is_some()