mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Fix constant name and key description
This commit is contained in:
@ -149,7 +149,7 @@ impl Key {
|
|||||||
let uid = Uuid::new_v4();
|
let uid = Uuid::new_v4();
|
||||||
Self {
|
Self {
|
||||||
name: Some("Default Read-Only Admin API Key".to_string()),
|
name: Some("Default Read-Only Admin API Key".to_string()),
|
||||||
description: Some("Use it to peek into the instance in a read-only mode. Caution! Do not expose it on a public frontend. It would give access to all other keys".to_string()),
|
description: Some("Use it to peek into the instance in a read-only mode.".to_string()),
|
||||||
uid,
|
uid,
|
||||||
actions: vec![Action::AllGet, Action::KeysGet],
|
actions: vec![Action::AllGet, Action::KeysGet],
|
||||||
indexes: vec![IndexUidPattern::all()],
|
indexes: vec![IndexUidPattern::all()],
|
||||||
@ -468,7 +468,7 @@ pub mod actions {
|
|||||||
use super::Action::*;
|
use super::Action::*;
|
||||||
|
|
||||||
pub(crate) const ALL: u8 = All.repr();
|
pub(crate) const ALL: u8 = All.repr();
|
||||||
pub const ALL_READ: u8 = AllGet.repr();
|
pub const ALL_GET: u8 = AllGet.repr();
|
||||||
pub const SEARCH: u8 = Search.repr();
|
pub const SEARCH: u8 = Search.repr();
|
||||||
pub const DOCUMENTS_ALL: u8 = DocumentsAll.repr();
|
pub const DOCUMENTS_ALL: u8 = DocumentsAll.repr();
|
||||||
pub const DOCUMENTS_ADD: u8 = DocumentsAdd.repr();
|
pub const DOCUMENTS_ADD: u8 = DocumentsAdd.repr();
|
||||||
|
Reference in New Issue
Block a user