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)