diff --git a/plume-models/src/api_tokens.rs b/plume-models/src/api_tokens.rs index 5095390..faac6ec 100644 --- a/plume-models/src/api_tokens.rs +++ b/plume-models/src/api_tokens.rs @@ -54,12 +54,12 @@ impl ApiToken { false } - pub fn can_read(&self, what: &'static str) -> bool { - self.can("read", what) + pub fn can_read(&self, scope: &'static str) -> bool { + self.can("read", scope) } - pub fn can_write(&self, what: &'static str) -> bool { - self.can("write", what) + pub fn can_write(&self, scope: &'static str) -> bool { + self.can("write", scope) } }