From e9ed33432d975d70d2149118978e6e165d750d46 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Tue, 6 Apr 2021 09:30:29 -0400 Subject: [PATCH] Correction d'un typo dans la nom d'une permission --- .../fyloz/colorrecipesexplorer/rest/MaterialTypeController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/fyloz/colorrecipesexplorer/rest/MaterialTypeController.kt b/src/main/kotlin/dev/fyloz/colorrecipesexplorer/rest/MaterialTypeController.kt index fb239a4..6123066 100644 --- a/src/main/kotlin/dev/fyloz/colorrecipesexplorer/rest/MaterialTypeController.kt +++ b/src/main/kotlin/dev/fyloz/colorrecipesexplorer/rest/MaterialTypeController.kt @@ -38,7 +38,7 @@ class MaterialTypeController(private val materialTypeService: MaterialTypeServic } @DeleteMapping("{id}") - @PreAuthorize("hasAuthority('REMOVE_MATERIAL_TYPEs')") + @PreAuthorize("hasAuthority('REMOVE_MATERIAL_TYPES')") fun deleteById(@PathVariable id: Long) = noContent { materialTypeService.deleteById(id)