Skip to content

Commit bac8bb9

Browse files
committed
fix layerCollection resource type string representation
1 parent f53d9a7 commit bac8bb9

File tree

1 file changed

+3
-3
lines changed
  • services/src/pro/permissions

1 file changed

+3
-3
lines changed

services/src/pro/permissions/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ impl std::fmt::Display for ResourceId {
107107
match self {
108108
ResourceId::Layer(layer_id) => write!(f, "layer:{}", layer_id.0),
109109
ResourceId::LayerCollection(layer_collection_id) => {
110-
write!(f, "layer_collection:{}", layer_collection_id.0)
110+
write!(f, "layerCollection:{}", layer_collection_id.0)
111111
}
112112
ResourceId::Project(project_id) => write!(f, "project:{}", project_id.0),
113113
ResourceId::DatasetId(dataset_id) => write!(f, "dataset:{}", dataset_id.0),
114-
ResourceId::MlModel(ml_model_id) => write!(f, "ml_model:{}", ml_model_id.0),
114+
ResourceId::MlModel(ml_model_id) => write!(f, "mlModel:{}", ml_model_id.0),
115115
}
116116
}
117117
}
@@ -146,7 +146,7 @@ impl TryFrom<(String, String)> for ResourceId {
146146
fn try_from(value: (String, String)) -> Result<Self> {
147147
Ok(match value.0.as_str() {
148148
"layer" => ResourceId::Layer(LayerId(value.1)),
149-
"layer_collection" => ResourceId::LayerCollection(LayerCollectionId(value.1)),
149+
"layerCollection" => ResourceId::LayerCollection(LayerCollectionId(value.1)),
150150
"project" => {
151151
ResourceId::Project(ProjectId(Uuid::from_str(&value.1).context(error::Uuid)?))
152152
}

0 commit comments

Comments
 (0)