mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 07:51:01 +00:00
ApiToken: rename what to scope
This commit is contained in:
parent
28fbf35779
commit
c341179150
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue