From c34117915050c63c6364f1fc98d1f192a47c143b Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Mon, 29 Oct 2018 21:21:00 +0100 Subject: [PATCH] ApiToken: rename what to scope --- plume-models/src/api_tokens.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plume-models/src/api_tokens.rs b/plume-models/src/api_tokens.rs index 50953904..faac6ecd 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) } }